Skip to content

Latest commit

 

History

History
127 lines (84 loc) · 1.79 KB

Label.md

File metadata and controls

127 lines (84 loc) · 1.79 KB

Label

@available(iOS 9.0, *) public class Label: UILabel

Inheritance

UILabel

Initializers

init(_:)

public init(_ text: String)

init(_:)

public init(_ attributedText: AttributedString)

Methods

number(ofLines:)

@discardableResult public func number(ofLines lines: Int) -> Self

font(_:)

@discardableResult public func font(_ font: UIFont) -> Self

font(_:)

@discardableResult public func font(_ textStyle: UIFont.TextStyle) -> Self

hideIfBlank()

@discardableResult public func hideIfBlank() -> Self

apply(attributes:)

@discardableResult public func apply(attributes: StringAttributes) -> Self

apply(attributes:range:)

@discardableResult public func apply(attributes: StringAttributes, range: ClosedRange<Int>) -> Self

text(alignment:)

@discardableResult public func text(alignment: NSTextAlignment) -> Self

text(color:)

@discardableResult public func text(color: UIColor) -> Self

title1(_:)

class func title1(_ text: String) -> Label

title2(_:)

class func title2(_ text: String) -> Label

title3(_:)

class func title3(_ text: String) -> Label

headline(_:)

class func headline(_ text: String) -> Label

subheadline(_:)

class func subheadline(_ text: String) -> Label

body(_:)

class func body(_ text: String) -> Label

callout(_:)

class func callout(_ text: String) -> Label

caption1(_:)

class func caption1(_ text: String) -> Label

caption2(_:)

class func caption2(_ text: String) -> Label