Skip to content

casbeebc/TouchMenu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TouchMenu

A Touch Menu Component for iOS

/TouchMenu/TouchMenu.gif

Usage

let touchMenuItems = [
TouchMenuItem(label: "Add", subItems: []),
TouchMenuItem(label: "Delete", subItems: []),
TouchMenuItem(label: "Edit", subItems: []),
TouchMenuItem(label: "Help", subItems: [])
]

touchMenu = TouchMenu(viewController: self, view: view, touchMenuItems: touchMenuItems)

touchMenu.touchMenuDelegate = self

Once the user has hovered over a menu item, this function is called in your ViewController:

func menuItemSelected(menu: TouchMenu, menuItem: TouchMenuItem) {
    // handle the menu selection
}

About

TouchMenu - Swift 3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published