drawer-menu-swift
drawer-menu-swift copied to clipboard
Access to View Controller
Hi, I have a little issue, when I implement the drawer and the menu bar. I can't have access to my original ViewController. I try to tap on my subviews and I can't have user Interaction. How can I fix it. I know it's simple but my brain is not working anymore, and it could be nice if you can help me.
Hi must add storyboard id, like this sample let rootController = storyboard.instantiateViewController(withIdentifier: "navigationmain") as! MainNavigationController2 this case is UINavigationController
hi! Please explain more clearly, same problem :( I can't have access to my original ViewController
replace == "let mainVC = UIViewController()"
to == let mainVC = UIStoryboard(name: "Main", bundle: Bundle.main).instantiateViewController(withIdentifier: "ViewController") as! UIViewController
it's working