Skip to content

Instantly share code, notes, and snippets.

@NunoAlexandre
Last active December 23, 2018 10:51
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 NunoAlexandre/a1fe8e3bb291cec028de81e4bd21c025 to your computer and use it in GitHub Desktop.
Save NunoAlexandre/a1fe8e3bb291cec028de81e4bd21c025 to your computer and use it in GitHub Desktop.
Typed Modeling
class Slideshow: UIView {
let slides: [SlideView]
// UI & Layout code goes here...
}
class SlideView: UIView {
let slide: Slide
// UI & Layout code goes here...
}
struct Slide {
let title: String
let description: String
let image: UIImage
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment