在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):Ramotion/circle-menu开源软件地址(OpenSource Url):https://github.com/Ramotion/circle-menu开源编程语言(OpenSource Language):Swift 97.7%开源软件介绍(OpenSource Introduction):CIRCLE MENUSimple, elegant UI menu with a circular layout and material design animationsWe specialize in the designing and coding of custom UI for Mobile Apps and Websites.Stay tuned for the latest updates:Requirements
InstallationJust add CircleMenuLib folder to your project. or use CocoaPods with Podfile: pod 'CircleMenu' or Carthage users can simply add to their
Usagewith storyboard
func circleMenu(circleMenu: CircleMenu, willDisplay button: UIButton, atIndex: Int)
@IBInspectable var buttonsCount: Int = 3
@IBInspectable var duration: Double = 2 // circle animation duration
@IBInspectable var distance: Float = 100 // distance between center button and buttons programmaticallylet button = CircleMenu(
frame: CGRect(x: 200, y: 200, width: 50, height: 50),
normalIcon:"icon_menu",
selectedIcon:"icon_close",
buttonsCount: 4,
duration: 4,
distance: 120)
button.delegate = self
button.layer.cornerRadius = button.frame.size.width / 2.0
view.addSubview(button) delegate methods// configure buttons
optional func circleMenu(circleMenu: CircleMenu, willDisplay button: UIButton, atIndex: Int)
// call before animation
optional func circleMenu(circleMenu: CircleMenu, buttonWillSelected button: UIButton, atIndex: Int)
// call after animation
optional func circleMenu(circleMenu: CircleMenu, buttonDidSelected button: UIButton, atIndex: Int)
// call upon cancel of the menu - fires immediately on button press
optional func menuCollapsed(circleMenu: CircleMenu)
// call upon opening of the menu - fires immediately on button press
optional func menuOpened(circleMenu: CircleMenu) |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论