Panels
Panels is a framework to easily add sliding panels to your application. It takes care of the safe area in new devices and moving your panel when the keyboard is presented/dismissed.
Usage
First, create your own panel, you can use Interface Builder, use as reference the examples provided.
Make sure that you conform the protocol Panelable
This protocol defines the interface needed to be able to adjust the sliding panel
to the container, expanding and collapsing. It will take care of the safe area
Then in your ViewController, where the panel is presented:
If you want to get notifications when the panel is presented, collapsed or
expanded, just conform the protocol PanelNotifications
You can find extra options in the PanelConfiguration
object:
You could add an arrow indicator to give more feedback to your panels. The perfect companion for Panels
is Arrows
Installation
CocoaPods
Add the line pod "Panels"
to your Podfile