Created
February 4, 2019 19:46
-
-
Save azamsharp/82ae32791b41ea6352eed034ed69dbb9 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 ArticleViewModel { | |
private let article: Article | |
} | |
extension ArticleViewModel { | |
init(_ article: Article) { | |
self.article = article | |
} | |
} | |
extension ArticleViewModel { | |
var title: String { | |
return self.article.title | |
} | |
var description: String { | |
return self.article.description | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment