Created
November 24, 2015 13:03
-
-
Save eofster/0293fff508ee6d7b98b0 to your computer and use it in GitHub Desktop.
Usage of view controller with dependency injected in the initializer
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
class ViewController2: UIViewController { | |
func showDetailWithPhoto(photo: Photo) { | |
showViewController(PhotoDetailViewController2(photo: photo), sender: self) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment