Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extension ViewModelBased where Self: StoryboardBased & UIViewController {
- static func instantiate<ServicesT> (withServices services: ServicesT) -> Self
- where ServicesT == Self.ViewModelType.Services {
- let viewController = Self.instantiate()
- viewController.viewModel = ViewModelType(withServices: services)
- return viewController
- }
- }
Add Comment
Please, Sign In to add comment