Skip to content

Instantly share code, notes, and snippets.

@tylerlantern
Created December 24, 2018 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tylerlantern/3981e80241ea0aae0b67289802346d5e to your computer and use it in GitHub Desktop.
Save tylerlantern/3981e80241ea0aae0b67289802346d5e to your computer and use it in GitHub Desktop.
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