-
-
Save marcinjackowski/31b3c78b642458253ea30c45e3e54b5f to your computer and use it in GitHub Desktop.
[ProfileDI] #dependencyInversion
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 Profile { | |
private let worker: FriendsWorker | |
init(worker: FriendsWorker) { | |
self.worker = worker | |
fetch() | |
} | |
private func fetch() { | |
worker.fetch() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment