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

    frame

    A rectangle specifying the initial location and size of the circle menu in its superview’€™s coordinates.

    normalIcon

    The image to use for the specified normal state.

    selectedIcon

    The image to use for the specified selected state.

    buttonsCount

    The number of buttons.

    duration

    The duration, in seconds, of the animation.

    distance

    Distance 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

    duration

    The duration, in seconds, of the animation.

    hideDelay

    The time to delay, in seconds.

  • Check is sub buttons showed

    Declaration

    Swift

    public func buttonsIsShown() -> Bool