Last active
March 23, 2021 22:57
-
-
Save agiokas/2307e2333451e69cad5b9c046377f08a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| // | |
| // Created by Apostolos Giokas on 23.03.21. | |
| // | |
| import UIKit | |
| open class ViewCοntrollerFactory: Factory<UIViewController> { | |
| public func register<T, OutP>(vm: T.Type, factory: @escaping (T) -> OutP) where OutP: UIViewController { | |
| register(for: vm, factory: { factory($0) }) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment