Latest 2.0
Homepage https://github.com/GordonLY/LYPopMenu
License MIT
Platforms ios 8.0
Frameworks UIKit
Authors ,

简单的弹出式菜单选择器

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

Pod支持:

Swift 4
pod ‘LYPopMenu’, ‘~> 2.0’

Swift 3
pod ‘LYPopMenu’, ‘~> 1.2.1’

效果图

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

Latest podspec

{
    "name": "LYPopMenu",
    "version": "2.0",
    "summary": "u5f39u51fau5f0fu83dcu5355u9009u62e9u5668",
    "homepage": "https://github.com/GordonLY/LYPopMenu",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": [
        "LYPC",
        "Gordon"
    ],
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/GordonLY/LYPopMenu.git",
        "tag": "2.0"
    },
    "frameworks": "UIKit",
    "pushed_with_swift_version": "4.0",
    "subspecs": [
        {
            "name": "LYPopMenu",
            "source_files": "LYPopMenu/*.swift"
        }
    ]
}

Pin It on Pinterest

Share This