You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @tharhtet, to use a UITabBarController with Viperit I suggest you to subclass UITabBarController and do something like this:
import UIKit
finalclassAppTabBar:UITabBarController{func setup(){varmodules:[AppModules]=[.module1,.module2,.module3,.module4
]
viewControllers = modules.map({ mod ->UIViewControllerinletmodule= mod.build()letview= module.router.embedInNavigationController()// In case you don't need a navigationController// let view = module.router._viewreturn view
})}}
This is a very simple solution. Of course you could add more configuration to this and inject the dependencies in the setup function or configuration classes or stuff like that.
Could I get the example with UITabBarController with Viperit without NavigationController? Thanks a lot.
The text was updated successfully, but these errors were encountered: