Bottom sheet popover built with Swift & UIKit.
CocoaPods is a dependency manager for Cocoa projects. To integrate BottomSheet into your project using CocoaPods, specify it in your Podfile
:
pod 'IDBottomSheet'
Ruby
After that use pod install
command in your terminal.
If you prefer not to use any dependency managers, you can integrate BottomSheet into your project manually by downloading the desired release and copying the Sources
directory.
Subclass BottomSheetViewController
, then override viewDidLoad like this:
class ViewController: BottomSheetViewController {
override func viewDidLoad() {
viewController = BottomSheetContentsViewController() //your view controller
isHalfPresentationEnabled = true //or false
super.viewDidLoad()
}
}
#bottomsheet #swift #uikit