8000 GitHub - phuongvnc/CPMenuView
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

phuongvnc/CPMenuView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CPMenuView

Simple circle menu animated :

CI Status Version License Platform

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, vonguyenchiphuong@gmail.com

License

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  
0