Last active
December 23, 2018 10:51
-
-
Save NunoAlexandre/a1fe8e3bb291cec028de81e4bd21c025 to your computer and use it in GitHub Desktop.
Typed Modeling
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
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