Fix slide up animation when beginning a quote or edit.

This commit is contained in:
Pete Walters 2023-08-07 13:21:36 -05:00 committed by GitHub
parent f5d8968e6c
commit 2ee35506cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -202,18 +202,18 @@ public class ContextMenuInteraction: NSObject, UIInteraction {
if animated {
contextMenuController?.animateOut({
completion()
self.delegate?.contextMenuInteraction(self, didEndForConfiguration: configuration)
self.contextMenuController?.view.removeFromSuperview()
self.contextMenuController = nil
completion()
})
} else {
targetedPreview?.view.isHidden = false
targetedPreview?.auxiliaryView?.isHidden = false
delegate?.contextMenuInteraction(self, didEndForConfiguration: configuration)
completion()
self.contextMenuController?.view.removeFromSuperview()
self.contextMenuController = nil
completion()
}
}