instamobile / drawer-menu-swift

Drawer menu implementation in Swift 4
https://www.instamobile.io
MIT License
85 stars 29 forks source link

Access to View Controller #3

Open Leor8a opened 6 years ago

Leor8a commented 6 years ago

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.

crgg commented 4 years ago

Hi must add storyboard id, like this sample let rootController = storyboard.instantiateViewController(withIdentifier: "navigationmain") as! MainNavigationController2 this case is UINavigationController

sashcomua commented 3 years ago

hi! Please explain more clearly, same problem :( I can't have access to my original ViewController

sashcomua commented 3 years ago

replace == "let mainVC = UIViewController()"

to == let mainVC = UIStoryboard(name: "Main", bundle: Bundle.main).instantiateViewController(withIdentifier: "ViewController") as! UIViewController

it's working