Latest 1.0.3
Homepage https://github.com/00aney/CircleExpandingMenu
License MIT
Platforms ios 9.0
Authors

A simple circle expanding menu

CircleExpandingMenu

Installation

  • For iOS 9+ projects with CocoaPods:

    pod 'CircleExpandingMenu'
  • For iOS 9+ projects with Carthage:
    github "00aney/CircleExpandingMenu"

Usage

import CircleExpandingMenu

programmatically

let circleExpandingMenu = CircleExpandingMenu(
  frame: CGRect(x: self.view.bounds.width - 100, y: self.view.bounds.height - 100, width: 50, height: 50),
  normalIcon: "icon-menu",
  selectedIcon: "icon-close",
  buttonsCount: self.items.count,
  duration: 2,
  distance: 10
)
circleExpandingMenu.delegate = self
circleExpandingMenu.backgroundColor = .green
circleExpandingMenu.layer.cornerRadius = circleExpandingMenu.frame.size.width / 2

self.view.addSubview(circleExpandingMenu)

delegate methods

// configure buttons
@objc optional func circleExpandingMenu(
  _ circleExpandingMenu: CircleExpandingMenu,
  willDisplay button: UIButton, 
  atIndex: Int
)

// call before animation
@objc optional func circleExpandingMenu(
  _ circleExpandingMenu: CircleExpandingMenu,
  buttonWillSelected button: UIButton,
  atIndex: Int
)

// call after animation
@objc optional func circleExpandingMenu(
  _ circleExpandingMenu: CircleExpandingMenu, 
  buttonDidSelected button: UIButton, 
  atIndex: Int
)

// call upon cancel of the menu
@objc optional func menuCollapsed(_ circleExpandingMenu: CircleExpandingMenu)

License

CircleExpandingMenu is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "CircleExpandingMenu",
    "version": "1.0.3",
    "summary": "A circle menu like side menu controls",
    "description": "The circle expanding menu that can be used in any iOS app.",
    "homepage": "https://github.com/00aney/CircleExpandingMenu",
    "license": "MIT",
    "authors": {
        "Ted Kim": "[email protected]"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/00aney/CircleExpandingMenu.git",
        "tag": "1.0.3"
    },
    "source_files": [
        "CircleExpandingMenu",
        "CircleExpandingMenu/**/*.{h,m}"
    ],
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This