LabelAppearance

@objc(YMALabelAppearance)
@objcMembers
public class LabelAppearance : NSObject, NSCopying, NSMutableCopying

A class with fixed settings for the standard text appearance: font name, size, and color.

Remark

If you want to edit the settings of the standard appearance, use the MutableLabelAppearance class.
  • Font settings: name and size.

    Declaration

    Swift

    public var font: UIFont { get }
  • Text color.

    Declaration

    Swift

    public var textColor: UIColor { get }
  • Corresponding mutable representation of current label appearance.

    Declaration

    Swift

    public var mutableAppearance: MutableLabelAppearance { get }
  • Undocumented

    Declaration

    Swift

    override public convenience init()
  • Creates an object of the LabelAppearance class with the text settings.

    Declaration

    Swift

    public required convenience init(font: UIFont, textColor: UIColor)

    Parameters

    font

    Font settings: name and size.

    textColor

    Text color.

    Return Value

    The configured text appearance (the specified font and color).

  • Creates an object of the LabelAppearance class with the text settings.

    Declaration

    Swift

    public static func appearanceWithFont(_ font: UIFont, textColor: UIColor) -> Self

    Parameters

    font

    Font settings: name and size.

    textColor

    Text color.

    Return Value

    The configured text appearance (the specified font and color).

NSCopying

  • Undocumented

    Declaration

    Swift

    public func copy(with zone: NSZone? = nil) -> Any

NSMutableCopying

  • Undocumented

    Declaration

    Swift

    public func mutableCopy(with zone: NSZone? = nil) -> Any