UIButton

  • SwifterSwift: Image of disabled state for button; also inspectable from Storyboard.

    Declaration

    Swift

    @IBInspectable public var imageForDisabled: UIImage?
  • SwifterSwift: Image of highlighted state for button; also inspectable from Storyboard.

    Declaration

    Swift

    @IBInspectable public var imageForHighlighted: UIImage?
  • SwifterSwift: Image of normal state for button; also inspectable from Storyboard.

    Declaration

    Swift

    @IBInspectable public var imageForNormal: UIImage?
  • SwifterSwift: Image of selected state for button; also inspectable from Storyboard.

    Declaration

    Swift

    @IBInspectable public var imageForSelected: UIImage?
  • SwifterSwift: Title color of disabled state for button; also inspectable from Storyboard.

    Declaration

    Swift

    @IBInspectable public var titleColorForDisabled: UIColor?
  • SwifterSwift: Title color of highlighted state for button; also inspectable from Storyboard.

    Declaration

    Swift

    @IBInspectable public var titleColorForHighlighted: UIColor?
  • SwifterSwift: Title color of normal state for button; also inspectable from Storyboard.

    Declaration

    Swift

    @IBInspectable public var titleColorForNormal: UIColor?
  • SwifterSwift: Title color of selected state for button; also inspectable from Storyboard.

    Declaration

    Swift

    @IBInspectable public var titleColorForSelected: UIColor?
  • SwifterSwift: Title of disabled state for button; also inspectable from Storyboard.

    Declaration

    Swift

    @IBInspectable public var titleForDisabled: String?
  • SwifterSwift: Title of highlighted state for button; also inspectable from Storyboard.

    Declaration

    Swift

    @IBInspectable public var titleForHighlighted: String?
  • SwifterSwift: Title of normal state for button; also inspectable from Storyboard.

    Declaration

    Swift

    @IBInspectable public var titleForNormal: String?
  • SwifterSwift: Title of selected state for button; also inspectable from Storyboard.

    Declaration

    Swift

    @IBInspectable public var titleForSelected: String?
  • SwifterSwift: Set image for all states.

    Declaration

    Swift

    public func setImageForAllStates(_ image: UIImage)

    Parameters

    image

    UIImage.

  • SwifterSwift: Set title color for all states.

    Declaration

    Swift

    public func setTitleColorForAllStates(_ color: UIColor)

    Parameters

    color

    UIColor.

  • SwifterSwift: Set title for all states.

    Declaration

    Swift

    public func setTitleForAllStates(_ title: String)

    Parameters

    title

    title string.

  • SwifterSwift: Center align title text and image on UIButton

    Declaration

    Swift

    public func centerTextAndImage(spacing: CGFloat)

    Parameters

    spacing

    spacing between UIButton title text and UIButton Image.