BottomSheet
A BottomSheet component made with UIKit.
Usage
BottomSheetViewController
This controller uses BottomSheetView
as its main view. To specify custom content for the bottom sheet create your own view, and assign it to the contentView
variable of the controller. You can either do this by subclassing BottomSheetViewController
, to implement your own business logic, or by assigning the view at initialisation before presenting the sheet.
Example: subclassing BottomSheetViewController
Example: assignment on init
Presentation
Instantiate your BottomSheetViewController
and set the presenting controller as the transitioningDelegate
of the bottom sheet.