测试已测试 | ✗ |
语言语言 | SwiftSwift |
许可证 | MIT |
发布最后发布 | 2017年2月 |
SwiftSwift 版本 | 3.0 |
SPM支持 SPM | ✓ |
由 hryk224 维护。
一个从屏幕底部呈现可关闭视图的组件
import Bottomsheet
let controller = Bottomsheet.Controller()
// Adds View
let view = UIView
controller.addContentsView(view)
// Adds NavigationBar
controller.addNavigationbar { [weak self] navigationBar in
// navigationBar
}
// 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
本项目的发行遵循 MIT 许可证。请参阅 LICENSE 文件了解详细信息。