Skip to content

Instantly share code, notes, and snippets.

@jpetrich
Created January 5, 2018 20:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpetrich/5c91e67251e936988fef7b9b14dd4169 to your computer and use it in GitHub Desktop.
Save jpetrich/5c91e67251e936988fef7b9b14dd4169 to your computer and use it in GitHub Desktop.
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