CircleMenu
public class CircleMenu: UIButton
A Button object with pop ups buttons
-
Buttons count
Declaration
Swift
@IBInspectable public var buttonsCount: Int = 3 -
Circle animation duration
Declaration
Swift
@IBInspectable public var duration: Double = 2 -
Distance between center button and buttons
Declaration
Swift
@IBInspectable public var distance: Float = 100 -
Delay between show buttons
Declaration
Swift
@IBInspectable public var showDelay: Double = 0 -
The object that acts as the delegate of the circle menu.
Declaration
Swift
@IBOutlet weak public var delegate: AnyObject? //CircleMenuDelegate?
-
Initializes and returns a circle menu object.
Declaration
Swift
public init(frame: CGRect, normalIcon: String?, selectedIcon: String?, buttonsCount: Int = 3, duration: Double = 2, distance: Float = 100)Parameters
frameA rectangle specifying the initial location and size of the circle menu in its superview’s coordinates.
normalIconThe image to use for the specified normal state.
selectedIconThe image to use for the specified selected state.
buttonsCountThe number of buttons.
durationThe duration, in seconds, of the animation.
distanceDistance between center button and sub buttons.
Return Value
A newly created circle menu.
-
Hide button
Declaration
Swift
public func hideButtons(duration: Double, hideDelay: Double = 0)Parameters
durationThe duration, in seconds, of the animation.
hideDelayThe time to delay, in seconds.
-
Check is sub buttons showed
Declaration
Swift
public func buttonsIsShown() -> Bool
CircleMenu Class Reference