PTTextWidgetAppearanceViewModel

A view model representing the appearance of a text widget annotation.

  • Initializes a newly created PTTextWidgetAppearanceViewModel instance.

    Declaration

    Objective-C

    - (nonnull instancetype)init;

    Swift

    init()

    Return Value

    an initialized PTTextWidgetAppearanceViewModel instance.

  • Note

    The default value of this property is CGSizeZero.

    Declaration

    Objective-C

    @property (nonatomic) CGSize size;

    Swift

    var size: CGSize { get set }
  • The amount that the text is inset from the edges of the content.

    Note

    The default value of this property is (5, 5, 5, 5).

    Declaration

    Objective-C

    @property (nonatomic) UIEdgeInsets textContentInset;

    Swift

    var textContentInset: UIEdgeInsets { get set }