Is there a way to determine when a UIMenuController has been dismissed? I have a (non-editable) text area I\'m highlighting when the menu is brought up, and I\'d like to un-high
Swift 3 & 4
NotificationCenter.default.addObserver(
self,
selector: #selector(self.didHideEditMenu),
name: NSNotification.Name.UIMenuControllerDidHideMenu,
object: nil)
NotificationCenter.default.addObserver(
self,
selector: #selector(self.willHideEditMenu),
name: NSNotification.Name.UIMenuControllerWillHideMenu,
object: nil)