AJBottomSheet
AJBottomSheet是一种从屏幕底部滑上的视图。底部面板是用户触发动作的结果。要运行示例项目,首先需要克隆仓库,然后从 Example 目录运行 pod install
命令。
1) 通过 Cocoapods 安装。
pod 'AJBottomSheet'
2) 导入 AJBottomSheet
import AJBottomSheet
2) 调用 AJBottomSheet
//Initialize view controller to be presented as bottom sheet
let vc: ListViewController = self.storyboard?.instantiateViewController(withIdentifier: "ListViewController") as! ListViewController
//Pass the view controller and set the height of the bottom sheet
AJBottomSheetViewController.show(viewController: vc, height: 130, parent: self)
待办事项
- 添加滑动以关闭功能
- 添加滑动查看完整页面功能
作者
- 姓名:Alvin John Tandoc
- 电子邮件:[email protected]
- skype:alvin.tandoc15
- linkedin:https://linkedin.com/in/alvinjohntandoc
许可协议
AJBottomSheet采用MIT许可证。有关更多信息,请参阅LICENSE文件。