Skip to content

Instantly share code, notes, and snippets.

@thiagolioy
Created November 21, 2016 15:54
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 thiagolioy/f3f31202ce048567af4576e205bb5619 to your computer and use it in GitHub Desktop.
Save thiagolioy/f3f31202ce048567af4576e205bb5619 to your computer and use it in GitHub Desktop.
func navigateExample() {
guard let nextController = Storyboard.Main.characterViewControllerScene
.viewController() as? CharacterViewController else {
return
}
let character = characters[index.row]
nextController.character = character
self.navigationController?.pushViewController(nextController, animated: true)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment