Created
November 24, 2015 13:01
-
-
Save eofster/c065d9f459fd377ebd89 to your computer and use it in GitHub Desktop.
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 PhotoDetailViewController2: UIViewController { | |
let photo: Photo | |
init(photo: Photo) { | |
self.photo = photo | |
super.init(nibName: "PhotoDetailViewController2", bundle: nil) | |
} | |
required init?(coder: NSCoder) { | |
fatalError("init(coder:) is not supported") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment