UILabel
public extension UILabel
-
Sets the textColor for the UILabel with the provided color
Declaration
Swift
@discardableResult func text(color: UIColor?) -> Self
-
Sets the text for the UILabel with the provided text value
Declaration
Swift
@discardableResult func text(_ value: String?) -> Self
-
Sets the numberOfLines for the UILabel with the value provided
Declaration
Swift
@discardableResult func number(ofLines lines: Int) -> Self
-
Sets the font for the UILabel with the font provided
Declaration
Swift
@discardableResult func font(_ font: UIFont) -> Self
-
Sets the font for the UILabel with the preferredFont for the textStyle provided
Declaration
Swift
@discardableResult func font(_ textStyle: UIFont.TextStyle) -> Self
-
Sets isHidden to true if text is empty and false otherwise
Declaration
Swift
@discardableResult func hideIfBlank() -> Self
-
Set the attributedText to the attributes privided
Declaration
Swift
@discardableResult func apply(attributes: StringAttributes) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func apply(attributes: StringAttributes, range: ClosedRange<Int>) -> Self
-
Sets the textAlignment for the UILabel with the alignment provided
Declaration
Swift
@discardableResult func text(alignment: NSTextAlignment) -> Self
-
Sets the textColor for the UILabel with the color provided
Declaration
Swift
@discardableResult func text(color: UIColor) -> Self