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
896 stars 63 forks source link

[Help] Support set root controller direct in AppDelegate #65

Closed toanbuidjv closed 3 years ago

toanbuidjv commented 3 years ago

I want to create project, ViewController with xib file ( not use storyboard), embed with UINavigationControlller Could you support set root controller direct in AppDelegate and support better with xib file (not use storyboard) ? Example: func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { RouteComposerDefaults.configureRootViewController(...) } You can reference https://github.com/quickbirdstudios/XCoordinator - simple, easy read & use

ekazaev commented 3 years ago

@toanbuidjv Hi, Sorry. I did not really understand your question? Do you want me to help you to setup a project or you want me to use XCoordinator?

You can set your view controller in the AppDelegate programmatically if you want. Or using one of the factories that are bundled with the library. Or you can write your own factory if you are doing something special during the initialisation and later reuse it in the configuration. The RouteComposer itself doesn't really care what and how is set up in your app.

toanbuidjv commented 3 years ago

I using XCoordinator, feel simple, easy, low code and when switch to "route-composer", feel so hard. Coud you make library to simple, easy understand, full document like XCoordinator?

ekazaev commented 3 years ago

Thank you for your feedback. I assume that you found your ideal library. There is nothing wrong with XCoordinator. Just keep using it.