DLPopMenu 2.0

DLPopMenu 2.0

测试已测试
Lang语言 SwiftSwift
许可证 Apache 2
发布上次发布2017年10月
SwiftSwift 版本4.0
SPM支持 SPM

gordon_ly 维护。



  • LYPC 和 Gordon

DLPopMenu

简单的弹出式菜单选择器

提供全 UI 定制(style 类中提供几乎所有可定制的样式)

Pod 支持:

Swift 3
pod 'DLPopMenu', '> 1.2'
Swift 4
pod 'DLPopMenu', '
> 2.0'

效果图

styles
1 3 5

参数说明图

params
param1 param2

用法示例

    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()