HongliYu / DPArrowMenu

Click the button in any position, show a list of menu

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DPArrowMenu

Click the button in any position, show a list of menu

Cocoapods Pod License Swift-5.0 Carthage Compatible

alt text

Usage

  // 1. Create view model, including title and image name.
    let arrowMenuViewModel0 = DPArrowMenuViewModel(title: "Find Teachers",
                                                   imageName: "iconProfessionalTeacherSemiBlack")
    let arrowMenuViewModel1 = DPArrowMenuViewModel(title: "Find Language Partners",
                                                   imageName: "iconUserFriendsSemiBlack24")
    viewModels.append(arrowMenuViewModel0)
    viewModels.append(arrowMenuViewModel1)

  // 2. Bind action, when user selects one of them
    DPArrowMenu.show(view, viewModels: viewModels, done: { index in
      print(index)
    }) {
      print("cancel")
    }

About

Click the button in any position, show a list of menu

License:MIT License


Languages

Language:Swift 96.0%Language:Ruby 2.3%Language:Objective-C 1.7%