UIControl
public extension UIControl
-
Set isEnabled for the view (Default: true)
Declaration
Swift
@discardableResult func enabled(if value: Bool = true) -> Self
-
Set isEnabled to true for the view
Declaration
Swift
@discardableResult func enable() -> Self
-
Set isEnabled to false for the view
Declaration
Swift
@discardableResult func disable() -> Self
-
Set tintColor to the provided color
Declaration
Swift
@discardableResult func tint(color: UIColor?) -> Self