ContainerController
UI Component. This is a copy swipe-panel from app: Apple Maps, Stocks. Swift version
Preview
Requirements
✏️ ContainerController is written in Swift 5.0+. It can be built by Xcode 11 or later. Compatible with iOS 13.0+.
Installation
CocoaPods
ContainerControllerSwift is available through CocoaPods. To install
it, simply add the following line to your Podfile:
Swift Package Manager with Xcode 11
Follow this doc.
Getting Started
Action
Move position with an animation
Adding possible custom subviews in ContainerController view
Add ScrollView
Delegate
to self ?
If you implement delegate ScrollView (TableView, CollectionView, TextView) to self
, then you need to call 4 functions in ContainerController
Add HeaderView
Add FooterView
Add Custom View
Settings ⚙️
Layout
Customize the layout with create subclass ContainerLayout
on initialization
Or create object ContainerLayout
Change settings right away
ContainerController View
Use a ready-made solution
ContainerView
is generated automatically when you create ContainerController
Use a ready-made solution to change the radius, add shadow, and blur.