Simple bubble menu animated :
-
Just copy the ASMenuBubble folder to your project
-
Or, if you are using CocoaPod, add the followind line to yur Podfile (adding the use_frameworks! flag at the end)
pod 'ASBubbleMenu', :git => 'https://github.com/scamps88/ASBubbleMenu.git'
use_frameworks!
-
to implement ASBubbleMenu just give him an array of UIimages and it will show them :
var bubbleMenu : ASMenuBubble! bubbleMenu = ASMenuBubble(frame: CGRectZero) bubbleMenu.showWithIcons(icons)
-
the ASMenuBubbleDelegate protocol will return the index selected :
func ASMenuBubbleSelectedMenuItemAtIndex(index: NSInteger) { } ```
- to close the menu just call this method :
bubbleMenu.closeAnimated()
ASBubbleMenu is available under the MIT license. See the LICENSE file for more info.