Using SWRevealViewController Together With RBStoryboardLink
I posted about how to modularize storyboard using RBStoryboardLink and how to use SWRevealViewController.
But to use both of them together is not straight forward.
This is because both library makes use of custom segues to do what they want to do. And it is not possible for you to customize 1 segue to satisfy both!
To make them work together:
RBStoryboardLinksuggorate view controller and setup
storyboardNameas per normal, but don’t create any segue to it. It will be alone.
Give it a storyboard ID eg. “surrogate”
Instead, call the revealViewController’s
1 2 3 4
If the view controller is not getting behind the status bar correctly, set
needsTopLayoutGuide key to NO in the suggorate.