Ramotion / circle-menu

:octocat: ⭕️ CircleMenu is a simple, elegant UI menu with a circular layout and material design animations. Swift UI library made by @Ramotion
https://www.ramotion.com/circle-menu-open-source-iphone-app-development-library/
MIT License
3.44k stars 357 forks source link

StartAngle/EndAngle feature added. #48

Closed derekvallar closed 6 years ago

derekvallar commented 6 years ago

I enjoyed using this menu and figured this feature should see the light of day after being requested a while back.

Added: CircleMenu.startAngle CircleMenu.endAngle fileprivate func getArcStep()

If using a full circle (360+ degrees), the buttons will be spaced out evenly. Otherwise, the buttons will start and end on the startAngle and endAngle respectively.

startAngle = 45, endAngle = 405

screen shot 2018-01-22 at 11 12 53 pm

startAngle = -45, endAngle = 90

screen shot 2018-01-22 at 11 04 46 pm
0ber commented 6 years ago

thanks