ALRadialMenu 2.0.0

ALRadialMenu 2.0.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Sep 2017
SwiftSwift Version 4.0
SPMSupports SPM

Maintained by Alex Littleohn.



  • By
  • Alex Littlejohn

ALRadialMenu

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)

Screen

Usage

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)
}

License

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