To run the example project, clone the repo, and run pod install
from the Example directory first.
ZBottomSheet is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'ZBottomSheet'
sxudan, sudan.suwal@spiralogics.com
ZBottomSheet is available under the MIT license. See the LICENSE file for more info.
Type: Controller
Type: View
Controller
let controller = ZBottomSheet.Controller(parent: self)
controller.showSheet()
View
let sheetView = ZBottomSheet.View(parent: self)
sheetView.addNavigationBar() { navigationBar in
return 70 //Height of bar
}
sheetView.showSheet()
Properties
var isClosable: Bool { get set }
var enableClipToBar: Bool { get set }
var initialHeight: CGFloat { get set }
var isExpandableToFullHeight: Bool! { get set }
func addNavigationBar(_ navigationBarHandler: @escaping (UINavigationBar) -> CGFloat)
func addTableView(_ tableViewHandler: @escaping (UITableView, UIScrollView) -> Void)
func addCollectionView(flowLayout: UICollectionViewFlowLayout?,_ collectionViewHandler: @escaping (UICollectionView, UIScrollView) -> Void)
func addBottomSheetView(view: UIView, presentedView viewHandler: @escaping (UIView) -> Void)
func addScrollView(_ scrollViewHandler: @escaping (UIScrollView) -> Void)
func addContentView(_ contentViewHandler: @escaping (UIView) -> Void)
var state: State! { get set }