Created
December 24, 2018 15:29
-
-
Save tylerlantern/3981e80241ea0aae0b67289802346d5e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class FirstViewController: UIViewController { | |
lazy var transitionManager = BHMenuTransitionManager(instance: self, fromViewController: self.navigationController!) | |
@IBAction func action_openSideMenu(_ sender: Any) { | |
self.performSegue(withIdentifier: "segueMenu", sender: nil) | |
} | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
} | |
override func prepare(for segue: UIStoryboardSegue, sender: Any?) { | |
if segue.identifier == "segueMenu" , let destVc = segue.destination as? UINavigationController { | |
destVc.transitioningDelegate = transitionManager | |
destVc.modalPresentationStyle = .custom | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment