Skip to content

Instantly share code, notes, and snippets.

@azamsharp
Created October 22, 2017 03:10
Show Gist options
  • Save azamsharp/26a710f653bae82258e6ebcb3ed73674 to your computer and use it in GitHub Desktop.
Save azamsharp/26a710f653bae82258e6ebcb3ed73674 to your computer and use it in GitHub Desktop.
struct ArticleListViewModel {
var title :String? = "Articles"
var articles :[ArticleViewModel] = [ArticleViewModel]()
}
extension ArticleListViewModel {
init(articles :[ArticleViewModel]) {
self.articles = articles
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment