Fix slide up animation when beginning a quote or edit.
This commit is contained in:
parent
f5d8968e6c
commit
2ee35506cb
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user