DTButtonMenuController 1.0.6

DTButtonMenuController 1.0.6

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release May 2019
SPMSupports SPM

Maintained by Tung Vo, Vo Duc Thinh.



  • By
  • tungvoduc

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, [email protected]

License

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