-
-
Save arthur-here/48129113ef2edcab038cc748d8f8f223 to your computer and use it in GitHub Desktop.
This file contains 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
class RepositoryViewModel { | |
let name: String | |
let description: String | |
let starsCountText: String | |
let url: URL | |
init(repository: Repository) { | |
self.name = repository.fullName | |
self.description = repository.description | |
self.starsCountText = "⭐️ \(repository.starsCount)" | |
self.url = URL(string: repository.url)! | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment