dtb

DTButtonMenuController

A simple and fully customizable way to display a button menu.

Showing:

Popularity

Downloads/wk

0

GitHub Stars

49

Maintenance

Last Commit

3yrs ago

Contributors

4

Package

Dependencies

0

License

MIT

Categories

Readme

DTButtonMenuController

Version License Platform

Example

Screenshot

DTButtonMenuController is extremely easy to use. For minimal intergration in your project, here is what you need to do:

let viewController = DTButtonMenuController(highlightedView: view)
itemSize = CGSize(width: 50, height: 50)
itemsDistanceToTouchPoint = 100

// Add five item buttons into controller
for _ in 0...4 {
    let item = DTMenuButton(completionHandlerBlock: { (button: DTMenuButton) in
            
         })
     })
            
    // Extra configuration for item button, e.g backgroundColor, image, rounded corner
            
    // Add item button to controller
    viewController.addItem(item)
}

present(viewController, animated: true, completion: nil)

In common cases, you will not use DTButtonMenuController but subclass it and make your own controller.

Requirements

Installation

DTButtonMenuController is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "DTButtonMenuController"

Author

Tung Vo, tung98.dn@gmail.com

License

DTButtonMenuController is available under the MIT license. See the LICENSE file for more info.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100