NewYorkButton

public final class NewYorkButton : UIButton

A button for the NewYorkAlert.

Public

  • Styles to apply to buttons in the NewYorkAlert.

    See more

    Declaration

    Swift

    public enum Style
  • A Boolean value indicating whether the control draws a highlight. Highlight animation will be performed here.

    Declaration

    Swift

    override public var isHighlighted: Bool { get set }

Initializers

  • Creates a button that can be added to the NewYorkAlert.

    Declaration

    Swift

    public init(title: String, style: Style, handler: ((NewYorkButton) -> Void)? = nil)

    Parameters

    title

    A button title.

    style

    A style that is applied to the button.

    handler

    A block to execute when the user taps the button.

    Return Value

    A NewYorkButton object.

Public method