Skip to content

Instantly share code, notes, and snippets.

@ivanbruel
Created March 11, 2016 11:13
Show Gist options
  • Save ivanbruel/837a2baa3729bf3cecfc to your computer and use it in GitHub Desktop.
Save ivanbruel/837a2baa3729bf3cecfc to your computer and use it in GitHub Desktop.
AnimalViewController.swift
class AnimalViewController: UIViewController {
// Model Object
var animal: Animal
// View Object
var imageView: UIImageView
override func viewDidLoad() {
// Maps Model into a View
imageView.image = animal.image
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment