A Simple Bottom Sheet for swift
WillBottomSheet
A Simple Bottom Sheet for swift.
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
let controller = Bottomsheet.Controller()
// Adds View
let view = UIView
controller.addContentsView(view)
// Adds CollectionView
controller.addCollectionView { [weak self] collectionView in
// collectionView
}
// Adds TableView
controller.addTableView { [weak self] tableView in
// tableView
}
// customize
controller.overlayBackgroundColor = UIColor(red: 255, green: 0, blue: 0, alpha: 0.3)
controller.viewActionType = .tappedDismiss
controller.initializeHeight = 200
Installation
WillBottomSheet is available through CocoaPods. To install
it, simply add the following line to your Podfile:
pod 'WillBottomSheet'
Author
willshërë, kowit.nan@truedigital.com