A port of Alex Littlejohn's ALRadialMenu https://github.com/AlexLittlejohn/ALRadialMenu
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitattributes
.gitignore
LICENSE
README.md
appveyor.yml
build.cake
build.ps1
releasenotes.md

README.md

ALRadialMenu

A port of Alex Littlejohn's ALRadialMenu https://github.com/AlexLittlejohn/ALRadialMenu

gif

Build status

Installing

Grab it from NuGet

PM> Install-Package ALRadialMenu

Usage

The ALRadialMenu is fluent library, meaning all setter methods are chainable.

Initializing the menu

var radialMenu = 
    new ALRadialMenu()
        .SetButtons(buttons) // sets the button to display
        .SetDelay(0.125) // delay between animation for each button. Default 0
        .SetCircumference(90) // circumference of the menu. Default 360
        .SetRadius(66f) // radius or distance from the center. Default 100
        .SetDismissOnOverlayTap(true) // dismiss when tapping overlay. Default true
        .SetStartAngle(180) // angle where first button is drawn. Default 270
        .SetOverlayCancelsTouchesInView(false); // set whether overlay cancels touches in views below. Default true

Displaying the menu in a view

radialMenu
    .SetAnimationOrigin(new CGRect(50, 100)) // where to display the menu
    .PresentInView(View); // which view to display it in

Displaying the menu in a window

radialMenu
    .PresentInWindow(View.Window); // which window to display it in

License

Licensed under the MIT License. See LICENSE file for more information