Skip to content

Instantly share code, notes, and snippets.

@HassanElDesouky
Created August 17, 2019 04:50
Show Gist options
  • Save HassanElDesouky/a7130407237547a47b2a89c77abacb82 to your computer and use it in GitHub Desktop.
Save HassanElDesouky/a7130407237547a47b2a89c77abacb82 to your computer and use it in GitHub Desktop.
@objc func addNewList() {
let storyboard = UIStoryboard(name: "CreateList", bundle: nil)
guard let createListController = storyboard.instantiateViewController(withIdentifier: "CreateListController") as? CreateListController else { return }
createListController.delegate = self // delegate connected
let vc = UINavigationController(rootViewController: createListController)
present(vc, animated: true, completion: nil)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment