Label

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

A UILabel that embeds a view

  • Creates a UILabel

    Declaration

    Swift

    public init(_ text: String)

    Parameters

    text

    The text for the UILabel

  • Creates a UILabel

    Declaration

    Swift

    public init(_ attributedText: AttributedString)

    Parameters

    attributedText

    The attributedText for the UILabel

  • Creates a UILabel with the font of .title1

    Declaration

    Swift

    class func title1(_ text: String) -> Label
  • Creates a UILabel with the font of .title2

    Declaration

    Swift

    class func title2(_ text: String) -> Label
  • Creates a UILabel with the font of .title3

    Declaration

    Swift

    class func title3(_ text: String) -> Label
  • Creates a UILabel with the font of .headline

    Declaration

    Swift

    class func headline(_ text: String) -> Label
  • Creates a UILabel with the font of .subheadline

    Declaration

    Swift

    class func subheadline(_ text: String) -> Label
  • Creates a UILabel with the font of .body

    Declaration

    Swift

    class func body(_ text: String) -> Label
  • Creates a UILabel with the font of .callout

    Declaration

    Swift

    class func callout(_ text: String) -> Label
  • Creates a UILabel with the font of .caption1

    Declaration

    Swift

    class func caption1(_ text: String) -> Label
  • Creates a UILabel with the font of .caption2

    Declaration

    Swift

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