Skip to content

Instantly share code, notes, and snippets.

@anuragajwani
Last active May 6, 2017 20:32
Show Gist options
  • Save anuragajwani/4dd2f40d0e0dea45d22cd5b3b544df20 to your computer and use it in GitHub Desktop.
Save anuragajwani/4dd2f40d0e0dea45d22cd5b3b544df20 to your computer and use it in GitHub Desktop.
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