AirBar is a library for creating UIScrollView
driven expandable menus.
To make library is flexible as possible there is no UI elements provided inside. You need to implement all UIKit transformations by yourself.
-
Create AirBarControllerConfiguration object.
-
Create AirBarController object with UIScrollView object and AirBarControllerConfiguration object.
-
Conform your UIViewController subclass with AirBarControllerDelegate protocol.
-
Set your view controller object to
delegate
property of AirBarController. -
Provide view transformations in following method:
func airBarController(_ controller: AirBarController, didChangeStateTo state: CGFloat, withHeight height: CGFloat)
Also you can use AirBarExample application provided in repo.