CocoaPods trunk is moving to be read-only. Read more on the blog, there are 3 months to go.

CPMenuView 1.1.0

CPMenuView 1.1.0

TestsTested ✗
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Aug 2017
SwiftSwift Version 3.0
SPMSupports SPM ✗

Maintained by PhuongVNC.



  • By
  • Chi Phuong

CPMenuView

Simple circle menu animated :

alt tag

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • Swift 3.0 & Xcode 8
  • iOS 8 and later

Manual install

Drag and drop folder CPMenuView to your project.

Installation

CPMenuView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'CPMenuView', '~> 1.0'

Usage

You can create and custom home button

let menuButton = HomeMenuButton(image: UIImage(named:"menu")!, size: CGSize(width: 50, height: 50))
menuButton.pressedImage = UIImage(named: "close")

Set animation of menu

let animator = CPMenuAnimator(commonDuration: 0.5, commonSpringWithDamping: 0.5, commonSpringVelocity: 10)

Create menu view

menuView = CPMenuView(parentView: self.view, homeButton: menuButton, animator: animator,type: .all,radius: 130, isClockWise: true)
menuView.delegate = self
menuView.datasource = self

You need set position for home button

menuView.setHomeButtonPosition(position: CGPoint(x: view.center.x, y: view.center.y - 100))

Contributing

Contributions for bug fixing or improvements are welcome. Feel free to submit a pull request.

Author

Chi Phuong, [email protected]

License

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