Skip to content

Instantly share code, notes, and snippets.

@marcinjackowski
Created September 9, 2018 19:48
Show Gist options
  • Save marcinjackowski/31b3c78b642458253ea30c45e3e54b5f to your computer and use it in GitHub Desktop.
Save marcinjackowski/31b3c78b642458253ea30c45e3e54b5f to your computer and use it in GitHub Desktop.
[ProfileDI] #dependencyInversion
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