Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trupin/c9f72645c001c754f759fadacb3edc37 to your computer and use it in GitHub Desktop.
Save trupin/c9f72645c001c754f759fadacb3edc37 to your computer and use it in GitHub Desktop.
final class MoviesViewController: UIViewController {
private let dependencies: MoviesViewControllerDependencyResolver
// weaver: movieManager <- MovieManaging
required init(injecting dependencies: MoviesViewControllerDependencyResolver) {
self.dependencies = dependencies
super.init(nibName: nil, bundle: nil)
}
override func viewDidLoad() {
super.viewDidLoad()
dependencies.movieManager.getMovies { ... }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment