Skip to content

Instantly share code, notes, and snippets.

@marcinjackowski
Last active September 9, 2018 19:48
Show Gist options
  • Save marcinjackowski/f33c834157be62a41d5ab09d42eed748 to your computer and use it in GitHub Desktop.
Save marcinjackowski/f33c834157be62a41d5ab09d42eed748 to your computer and use it in GitHub Desktop.
[Profile] #dependencyInversion
final class Profile {
private let service = FriendsService()
init() {
fetch()
}
private func fetch() {
service.fetch()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment