Last active
May 6, 2017 20:32
-
-
Save anuragajwani/4dd2f40d0e0dea45d22cd5b3b544df20 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
struct MoviesViewModel { | |
let movies: [MovieCellViewModel] | |
init(movies: [MovieCellViewModel]) { | |
self.movies = movies | |
} | |
} | |
struct MovieCellViewModel { | |
let textLabel: String | |
let detailTextLabel: String | |
init( | |
textLabel: String, | |
detailTextLabel: String | |
) { | |
self.textLabel = textLabel | |
self.detailTextLabel = detailTextLabel | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment