Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 660 Bytes

Button.md

File metadata and controls

31 lines (20 loc) · 660 Bytes

Button

@available(iOS 9.0, *) public class Button: UIButton

Inheritance

UIButton

Initializers

init(title:titleColor:backgroundColor:forEvent:action:)

public init(title: String, titleColor: UIColor? = nil, backgroundColor: UIColor? = nil, forEvent event: UIControl.Event = .touchUpInside, action: (() -> Void)? = nil)

init(forEvent:action:labelView:)

public init(forEvent event: UIControl.Event = .touchUpInside, action: (() -> Void)? = nil, labelView: () -> UIView)

Methods

setAction(_:)

@discardableResult public func setAction(_ action: (() -> Void)?) -> Self