Skip to content

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

License

Notifications You must be signed in to change notification settings

mohsinalimat/DPArrowMenu

 
 

Repository files navigation

DPArrowMenu

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

Cocoapods Pod License Swift-4.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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 95.6%
  • Ruby 2.5%
  • Objective-C 1.9%