UIButton
-
Closure based event handling for
UIButton
.Handler
will be called when the button receives an event of typeevent
.Declaration
Swift
public func handle(_ event: UIControlEvents, with handler: EmptyClosure?)
Parameters
event
Event that causes execution.
handler
Closure you want executed on event.
-
Closure based event handling for
UIButton
.Handler
will be called when the button receives an event of typeevent
.Declaration
Swift
public func add(handler: EmptyClosure?, for event: UIControlEvents)
Parameters
handler
Closure you want executed on event.
event
Event 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.adjustsFontForContentSizeCategory
on iOS 10+, and custom notification for content size change on iOS 9 and lower.Declaration
Swift
public var respondsToDynamicTypeChanges: Bool