JonContextMenu
A beautiful and minimalist arc menu like the Pinterest one, written in Swift. Allows you to add up to 8 items and customize it to the way you like!
How to use
The JonItem contructor has also a fourth optional parameter called "data". You can use it to add some object that you would like to have access later when selecting this item
To show the menu, just long press the view you set the JonContextMenu.
Delegates
If you want to be notified when some interaction happens on the context menu, JonContextMenu has with 5 functions that you can implemement:
Custom Configuration
The default visual configuration for JonContextMenu will probably be enough for you, but if you wish to make a few custom modification, the library has some functions that allow you to personalize it as you wish.
Installation
CocoaPods
To integrate JonContextMenu to your project using CocoaPods, specify it in your Podfile
:
Then, run the following command:
Manual installation
First download the "JonContextMenu" folder. Then, in Xcode, right-click on the root of your project node in the project navigator. Click "Add Files" to “YOURPROJECTNAME”. In the file chooser, navigate to where "JonContextMenu" folder is and select JonContextMenu.xcodeproj. Click "Add" to add JonContextMenu.xcodeproj as a sub-project.
Select the top level of your project node to open the project editor. Click the YOUR_PROJECT_NAME target, and then go to the General tab.
Scroll down to the Embedded Binaries section. Drag JonContextMenu.framework from the Products folder of JonContextMenu.xcodeproj onto this section.
Clean and rebuild your project, and you should be good to go!