VGSLabel

public final class VGSLabel : UIView, VGSLabelProtocol

A view that displays revealed text data.

Enums

Delegates

Public interface

UI Attribute

  • UIEdgeInsets for text. IMPORTANT! Paddings should be non-negative.

    Declaration

    Swift

    public var paddings: UIEdgeInsets { get set }
  • UIEdgeInsets for placeholder. Default is nil. If placeholder paddings not set, paddings property will be used to control placeholder insets. IMPORTANT! Paddings should be non-negative.

    Declaration

    Swift

    public var placeholderPaddings: UIEdgeInsets? { get set }
  • The natural size for the Lbel, considering only properties of the view itself.

    Declaration

    Swift

    public override var intrinsicContentSize: CGSize { get }

Accessibility Attributes

  • A succinct label in a localized string that identifies the accessibility element.

    Declaration

    Swift

    public var vgsAccessibilityLabel: String? { get set }
  • A localized string that contains a brief description of the result of performing an action on the accessibility element.

    Declaration

    Swift

    public var vgsAccessibilityHint: String? { get set }
  • Boolean value that determinates if the text field should be exposed as an accesibility element.

    Declaration

    Swift

    public var vgsIsAccessibilityElement: Bool { get set }

Font Attributes

  • Indicates whether VGSLabel should automatically update its font when the device’s UIContentSizeCategory is changed. It only works automatically with dynamic fonts

    Declaration

    Swift

    public var vgsAdjustsFontForContentSizeCategory: Bool { get set }
  • VGSLabel text font. By default use default dynamic font style .body to update its size automatically when the device’s UIContentSizeCategory changed.

    Declaration

    Swift

    public var font: UIFont? { get set }
  • Number of lines.

    Declaration

    Swift

    public var numberOfLines: Int { get set }
  • VGSLabel text color.

    Declaration

    Swift

    public var textColor: UIColor? { get set }
  • VGSLabel text alignment.

    Declaration

    Swift

    public var textAlignment: NSTextAlignment { get set }
  • VGSLabel line break mode.

    Declaration

    Swift

    public var lineBreakMode: NSLineBreakMode { get set }
  • VGSLabel layer corner radius.

    Declaration

    Swift

    public var cornerRadius: CGFloat { get set }
  • VGSLabel layer borderWidth.

    Declaration

    Swift

    public var borderWidth: CGFloat { get set }
  • VGSLabel layer borderColor.

    Declaration

    Swift

    public var borderColor: UIColor? { get set }

Custom text styles