Present any view controller easily in a drawer (iOS Maps style).
It is implemented as a UIViewController extension, which means no subclassing and no invasive view hierarchy setup. It is designed to be as easy to use as possible:
- You can present any existing or new controller. Make it conform to the
- Optionally setup a
DrawerPositionDelegatewhich is notified about drawer's position
displayInDrawer(controller, drawerPositionDelegate: delegate).
Amongst other things we add blur behind your controller. If you want blur effect to be visible you need give transparent background to your viewController's view.
To see it in action run
pod try UIViewController-DisplayInDrawer or clone the lib manually
UIViewController-DisplayInDrawer is available through CocoaPods. To install it, simply add the following line to your Podfile:
vilemkurz, [email protected]
UIViewController-DisplayInDrawer is available under the MIT license. See the LICENSE file for more info.