SpinnerButton

@IBDesignable
open class SpinnerButton : UIButton

Undocumented

  • 默认状态下的圆角 不要直接使用layer.cornerRadius,否则会造成从加载状态到默认状态下圆角丢失

    Declaration

    Swift

    @IBInspectable
    public var defaultCornerRadius: CGFloat { get set }
  • 状态之间转换的动画时间

    Declaration

    Swift

    @IBInspectable
    public var animationDuration: Double
  • 颜色

    Declaration

    Swift

    public var spinnerColor: CGColor? { get set }
  • 渐变颜色

    Declaration

    Swift

    public var gradientColors: [CGColor]? { get set }
  • 按钮的标题

    Declaration

    Swift

    public var title: String? { get set }
  • 标题颜色

    Declaration

    Swift

    public var titleColor: UIColor? { get set }
  • Undocumented

    Declaration

    Swift

    public required init(coder aDecoder: NSCoder)
  • Undocumented

    Declaration

    Swift

    public override init(frame: CGRect)
  • Undocumented

    Declaration

    Swift

    public init(title: String)
  • Undocumented

    Declaration

    Swift

    override open func layoutSubviews()