ekazaev / route-composer

Protocol oriented, Cocoa UI abstractions based library that helps to handle view controllers composition, navigation and deep linking tasks in the iOS application. Can be used as the universal replacement for the Coordinator pattern.
MIT License
902 stars 64 forks source link

Add GeneratorFactory, Now we can use custom init function #73

Closed wwdc14yh closed 3 years ago

wwdc14yh commented 3 years ago

Example of use: GeneratorFactory<CustomInitViewController, String>(generatorConfiguration: { CustomInitViewController(uuid: $0) }) or: GeneratorFactory<CustomInitViewController, Any?>(generator: CustomInitViewController(coder: ...))

ekazaev commented 3 years ago

@wwdc14 Thank you. Ill make small improvements and add make it available in SPM. It also will be renamed to InlineFactory to align with other similar entitites.