Closed Multiforge closed 3 years ago
ping?
@Multiforge Your root view controller needs to be the PulleyViewController in this case. The best way to bring up the drawer view over the current view controller is by setting the drawer position using the setDrawerPosition(position, animated, completion?)
method. Take a look at the sample app to see how the PulleyViewContoller is presented in the view hierarchy.
Hi, I have a question I hope you can help with. I'm probably missing something super obvious, but I want to show a drawer over an existing view controller that's modal and is already onscreen. I'd like to do this in code, not IB. Here's pseudocode for what I have tried so far:
MyModalViewController.swift (example)
Unfortunately the code above results in a runtime error,
'NSInvalidArgumentException', reason: 'Application tried to present modal view controller on itself. Presenting controller is <Pulley.PulleyViewController: 0x1177b8200>.'
How do I bring up the drawer over the current VC?
Many thanks for any help.