OverlayContainer is a UI library written in Swift. It makes easier to develop overlay-based interfaces, such as the one presented in the Apple Maps, Stocks or Shortcuts apps. It perfectly mimics the overlay presented in the Siri Shotcuts app. The main component of the library is the OverlayContainerViewController. It defines an area where a view controller, called the overlay view controller, can be dragged up and down, hiding or revealing the content underneath it. OverlayContainer uses the last view controller of its viewControllers as the overlay view controller. It stacks the other view controllers on top of each other, if any, and adds them underneath the overlay view controller. Specifing only one view controller is absolutely valid. For instance, in MapsLikeViewController the overlay only covers partially its content.
Features
- Unlimited notches
- Notches modifiable at runtime
- Adaptive to any custom layouts
- Rubber band effect
- Animations and target notch policy fully customizable
- Unit tested