Created
January 5, 2018 20:59
-
-
Save jpetrich/5c91e67251e936988fef7b9b14dd4169 to your computer and use it in GitHub Desktop.
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
public class AnimalInfoViewController : UIViewController { | |
public var animalToDisplay:Animal! | |
@IBOutlet weak var animalNameLbl: UILabel! | |
@IBOutlet weak var animalColorLbl: UILabel! | |
override public func viewDidLoad() { | |
super.viewDidLoad() | |
animalNameLbl.text = animalToDisplay.name | |
animalColorLbl.text = animalToDisplay.color | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment