A radial/circular menu featuring spring animations. Written in swift.
Experimenting with fluent interfaces (https://github.com/vandadnp/swift-weekly/blob/master/issue05/README.md)
This package is only intended for use with Carthage. The original framework for Cocoapods can be found on the Cocoapods repo by searching ALRadialMenu
Add the following line to your Cartfile
github "DanBurkhardt/ALRadialMenu"
run carthage update
override func viewDidLoad() {
super.viewDidLoad()
let gesture = UITapGestureRecognizer(target: self, action: "showMenu:")
view.addGestureRecognizer(gesture)
}
func showMenu(sender: UITapGestureRecognizer) {
var buttons = [ALRadialMenuButton]()
...
/// create buttons
...
ALRadialMenu()
.setButtons(buttons)
.setAnimationOrigin(sender.locationInView(view))
.presentInView(view)
}ALRadialMenu is available under the MIT license. See the LICENSE file for more info.
