Skip to content

Instantly share code, notes, and snippets.

@azamsharp
Created October 22, 2017 03:14
Show Gist options
  • Save azamsharp/e3331fb64e36f8c784154bd74477459b to your computer and use it in GitHub Desktop.
Save azamsharp/e3331fb64e36f8c784154bd74477459b to your computer and use it in GitHub Desktop.
struct ArticleViewModel {
var title :String
var description :String
}
extension ArticleViewModel {
init(article :Article) {
self.title = article.title
self.description = article.description
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment