Closed justdan0227 closed 4 years ago
In a delegate function, example:
// MARK: - PBRevealViewController Delegate
func revealController(_ revealController: PBRevealViewController, willShowLeft viewController: UIViewController) {
revealController.mainViewController?.view.alpha = 0.9
revealController.mainViewController?.view.isUserInteractionEnabled = false
if let nc = revealController.mainViewController as? UINavigationController, let mainVC = nc.topViewController as? MainViewController {
mainVC.textField.resignFirstResponder()
}
}
Thanks
Where do we put logic to dismiss the keyboard if the menu option is pressed or it is pulled out from the side?