测试已测试 | ✗ |
Lang语言 | SwiftSwift |
许可证 | Apache 2 |
发布上次发布 | 2017年10月 |
SwiftSwift 版本 | 4.0 |
SPM支持 SPM | ✗ |
由 gordon_ly 维护。
提供全 UI 定制(style 类中提供几乎所有可定制的样式)
Swift 3
pod 'DLPopMenu', '> 1.2'> 2.0'
Swift 4
pod 'DLPopMenu', '
styles |
---|
params |
---|
for idx in 0...3 {
let model = LYPopMenuModel()
model.title = "标题\(idx)"
model.imageName = "popmenu_icon"
items.append(model)
}
/// 使用models 和 style创建view
menuView = LYPopMenuView.menu(sender: sender, style: LYPopMenuStyle(), items: items, type: .upsidedown)
menuView?.action = {
print("==== action click >>>\($0)")
}
menuView?.show()