Last active
April 13, 2020 15:02
-
-
Save robertofrontado/9e2a4b0cdb17910ddef0527787c01307 to your computer and use it in GitHub Desktop.
DependencyInjectionExample
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
class Repository {} | |
class ViewModel { | |
let repository: Repository | |
init(repository: Repository) { | |
self.repository = repository | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment