Last active
April 3, 2016 20:59
-
-
Save daltonclaybrook/697be2e0f89b4f74a0cb8d6b863337c4 to your computer and use it in GitHub Desktop.
Swift casting
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
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) { | |
super.prepareForSegue(segue, sender: sender) | |
guard let navController = segue.destinationViewController as? UINavigationController, | |
packController = navController.topViewController as? PackViewController | |
where segue.identifier == SegueID.Pack else { | |
return | |
} | |
packController.delegate = self | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment