AJBottomSheet 1.0.2

AJBottomSheet 1.0.2

Alvin John Tandoc维护。



  • 作者
  • alvinjohntandoc

AJBottomSheet

CI Status Version License Platform

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)

待办事项

  • 添加滑动以关闭功能
  • 添加滑动查看完整页面功能

作者

许可协议

AJBottomSheet采用MIT许可证。有关更多信息,请参阅LICENSE文件。