Created
August 6, 2017 12:40
-
-
Save victor-pavlychko/e695ad40d33c43806a6f1d9c465e4ce0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 prepare(for segue: UIStoryboardSegue, sender: Any?) { | |
switch segue.destination { | |
case let destination as AnotherViewController: | |
destination.delegate = self | |
default: | |
fatalError("Unexpected segue: `\(self)` -> `\(segue.destination)`") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment