UIButton
-
Closure based event handling for
UIButton.Handlerwill be called when the button receives an event of typeevent.Declaration
Swift
public func handle(_ event: UIControlEvents, with handler: EmptyClosure?)Parameters
eventEvent that causes execution.
handlerClosure you want executed on event.
-
Closure based event handling for
UIButton.Handlerwill be called when the button receives an event of typeevent.Declaration
Swift
public func add(handler: EmptyClosure?, for event: UIControlEvents)Parameters
handlerClosure you want executed on event.
eventEvent that causes execution.
-
A boolean indicating if the titleLabel.text should live adjust size based on the user’s dynamic text setting changing.
A wrapper for
self.adjustsFontForContentSizeCategoryon iOS 10+, and custom notification for content size change on iOS 9 and lower.Declaration
Swift
public var respondsToDynamicTypeChanges: Bool
UIButton Extension Reference