|
|
|
@@ -10,16 +10,22 @@
|
|
|
|
|
|
|
|
|
|
## About
|
|
|
|
|
This project is maintained by Ramotion, Inc.<br>
|
|
|
|
|
We specialize in the designing and coding of custom UI for Mobile Apps and Websites.<br><br>**Looking for developers for your project?** [[▶︎CONTACT OUR TEAM◀︎](http://business.ramotion.com?utm_source=gthb&utm_medium=special&utm_campaign=circle-menu-contact-us/#Get_in_Touch)]
|
|
|
|
|
We specialize in the designing and coding of custom UI for Mobile Apps and Websites.<br><br>**Looking for developers for your project?**
|
|
|
|
|
|
|
|
|
|
<a href="http://business.ramotion.com?utm_source=gthb&utm_medium=special&utm_campaign=circle-menu-contact-us/#Get_in_Touch" > <img src="https://github.com/Ramotion/navigation-stack/raw/master/contact_our_team@2x.png" width="150" height="30"></a>
|
|
|
|
|
|
|
|
|
|
[](https://dribbble.com/shots/2534780-Circle-Menu-Swift-Open-Source)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The [iPhone mockup](https://store.ramotion.com/product/iphone-6-mockups?utm_source=gthb&utm_medium=special&utm_campaign=circle-menu) available [here](https://store.ramotion.com/product/iphone-6-mockups?utm_source=gthb&utm_medium=special&utm_campaign=circle-menu).
|
|
|
|
|
The [iPhone mockup](https://store.ramotion.com?utm_source=gthb&utm_medium=special&utm_campaign=circle-menu) available [here](https://store.ramotion.com?utm_source=gthb&utm_medium=special&utm_campaign=circle-menu).
|
|
|
|
|
|
|
|
|
|
## Try this UI control in action
|
|
|
|
|
|
|
|
|
|
<a href="https://itunes.apple.com/app/apple-store/id1182360240?pt=550053&ct=gthb-circle-menu&mt=8" > <img src="https://github.com/Ramotion/navigation-stack/raw/master/Download_on_the_App_Store_Badge_US-UK_135x40.png" width="170" height="58"></a>
|
|
|
|
|
|
|
|
|
|
## Requirements
|
|
|
|
|
|
|
|
|
|
- iOS 8.0+
|
|
|
|
|
- iOS 9.0+
|
|
|
|
|
- Xcode 7.3
|
|
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
@@ -48,7 +54,7 @@ github "Ramotion/circle-menu"
|
|
|
|
|
3) Use delegate method to configure buttons
|
|
|
|
|
|
|
|
|
|
```swift
|
|
|
|
|
func circleMenu(circleMenu: CircleMenu, willDisplay button: CircleMenuButton, atIndex: Int)
|
|
|
|
|
func circleMenu(circleMenu: CircleMenu, willDisplay button: UIButton, atIndex: Int)
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
4) Use properties to confiure CircleMenu
|
|
|
|
@@ -78,13 +84,13 @@ view.addSubview(button)
|
|
|
|
|
|
|
|
|
|
```swift
|
|
|
|
|
// configure buttons
|
|
|
|
|
optional func circleMenu(circleMenu: CircleMenu, willDisplay button: CircleMenuButton, atIndex: Int)
|
|
|
|
|
optional func circleMenu(circleMenu: CircleMenu, willDisplay button: UIButton, atIndex: Int)
|
|
|
|
|
|
|
|
|
|
// call before animation
|
|
|
|
|
optional func circleMenu(circleMenu: CircleMenu, buttonWillSelected button: CircleMenuButton, atIndex: Int)
|
|
|
|
|
optional func circleMenu(circleMenu: CircleMenu, buttonWillSelected button: UIButton, atIndex: Int)
|
|
|
|
|
|
|
|
|
|
// call after animation
|
|
|
|
|
optional func circleMenu(circleMenu: CircleMenu, buttonDidSelected button: CircleMenuButton, atIndex: Int)
|
|
|
|
|
optional func circleMenu(circleMenu: CircleMenu, buttonDidSelected button: UIButton, atIndex: Int)
|
|
|
|
|
|
|
|
|
|
// call upon cancel of the menu
|
|
|
|
|
optional func menuCollapsed(circleMenu: CircleMenu)
|
|
|
|
|