FloatingPanel is a simple and easy-to-use UI component for a new interface introduced in Apple Maps, Shortcuts and Stocks app. The new interface displays the related contents and utilities in parallel as a user wants. 4 positioning support(top, left, bottom, right). 1 or more magnetic anchors(full, half, tip and more). Layout support for all trait environments(i.e. Landscape orientation). Common UI elements: surface, backdrop and grabber handle. Free from common issues of Auto Layout and gesture handling. FloatingPanel is written in Swift 5.0+. Compatible with iOS 11.0+. The deployment is still iOS 10, but it is recommended to use this library on iOS 11+. If you need more control over showing and hiding the floating panel, you can forgo the addPanel and removePanelFromParent methods. These methods are a convenience wrapper for FloatingPanel's show and hide methods along with some required setup.
Features
- Simple container view controller
- Fluid behavior using numeric springing
- Scroll view tracking
- Removal interaction
- Multi panel support
- Modal presentation