NewYorkButton
public final class NewYorkButton : UIButton
A button for the NewYorkAlert.
-
Styles to apply to buttons in the NewYorkAlert.
See moreDeclaration
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 }
-
Creates a button that can be added to the NewYorkAlert.
Declaration
Swift
public init(title: String, style: Style, handler: ((NewYorkButton) -> Void)? = nil)Parameters
titleA button title.
styleA style that is applied to the button.
handlerA block to execute when the user taps the button.
Return Value
A NewYorkButton object.
-
Set button’s title color from
NewYorkDynamicColor.Declaration
Swift
public func setDynamicColor(_ color: NewYorkDynamicColor)Parameters
colorA color to apply to the button’s title
NewYorkButton Class Reference