DimmingButton

public final class DimmingButton : UIButton

A button that dims a view when highlighted.

  • The view to dim while highlighted

    Note

    If dimmingView is nil, the button itself is dimmed.

    Declaration

    Swift

    @IBOutlet
    public weak var dimmingView: UIView? { get set }
  • The alpha to set the view to when dimmed. Defaults to 0.4

    Declaration

    Swift

    @IBInspectable
    public var dimmedAlpha: CGFloat { get set }
  • Please refer to the documentation for UIButton.isHighlighted.

    Declaration

    Swift

    public override var isHighlighted: Bool { get set }