Friend-LGA/LGSideMenuController

Tabbar with sidemenu

farazhaider88 opened this issue · 5 comments

I want to use tabbar with sidemenu and tabbar containing navigation, is there any Swift example containing this implementation, also is each tabbar view should be inherited from sidemenu to have sidemenu effect.

I have faced same issue

any example?

You don't need to inherit UITabBarController from LGSideMenuController. You just need to make LGSideMenuController as your window's root controller, and make UITabBarController as a root controller for LGSideMenuController

Like this:

let tabBarController = UITabBarController()
let sideMenuController = LGSideMenuController()
sideMenuController.rootViewController = tabBarController
window.rootViewController = sideMenuController

I've added a few examples in Demo projects. Check Usage section on latest master:

  • As Container for UITabBarController
  • Inside UITabBarController

Hy Faraz did you solved this issue?