Created
October 22, 2017 03:10
-
-
Save azamsharp/26a710f653bae82258e6ebcb3ed73674 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 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