Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After navigate to root view controller from side menu,side menu is not able visible #80

Open
venkateshaelegenie opened this issue Jul 6, 2021 · 0 comments

Comments

@venkateshaelegenie
Copy link

venkateshaelegenie commented Jul 6, 2021

After navigate to root view controller from side menu,the side menu is not able to visible

I have wrriten the below code in my side menu table view did select

simulator_screenshot_9B502862-7DD7-4FAF-B2DA-BCE3294E1BE2

  let mainStoryboard: UIStoryboard = UIStoryboard(name: "Main", bundle: nil)
        let leftMenuVC: SideMenuViewController = mainStoryboard.instantiateViewController(withIdentifier: 
  "SideMenuViewController") as! SideMenuViewController
        let centerVC: TabbarViewController  = mainStoryboard.instantiateViewController(withIdentifier: "TabbarViewController") as! TabbarViewController
        let centerNavVC = UINavigationController(rootViewController: centerVC)
        centerNavVC.navigationBar.isHidden=true
        let appDelegate = UIApplication.shared.delegate as! AppDelegate
        //  Case 2: With Xtoryboards, Xibs And NSCoder
        let rootController: FAPanelController = appDelegate.window?.rootViewController as! FAPanelController
        _ = rootController.center(centerNavVC).left(leftMenuVC)
        //  For Case 1 only
        appDelegate.window?.rootViewController = rootController
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant