PTTextWidgetAppearanceViewModel
@interface PTTextWidgetAppearanceViewModel
: PTAnnotationAppearanceViewModel <PTTextWidget *,
PTTextWidgetAnnotationProperties *>
<PTRichTextAppearanceViewModel>
A view model representing the appearance of a text widget annotation.
-
Initializes a newly created
PTTextWidgetAppearanceViewModelinstance.Declaration
Objective-C
- (nonnull instancetype)init;Swift
init()Return Value
an initialized
PTTextWidgetAppearanceViewModelinstance.
-
The properties for the represented text widget annotation.
Declaration
Objective-C
@property (nonatomic, strong, readonly) PTTextWidgetAnnotationProperties *_Nonnull properties;Swift
var properties: PTTextWidgetAnnotationProperties { get }
-
Note
The default value of this property isCGSizeZero.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 }
-
The plain (unattributed) text.
Note
The default value of this property is
nil.Declaration
Objective-C
@property (nonatomic, copy, nullable) NSString *contents;Swift
var contents: String? { get set } -
The rich (attributed) text.
Note
The default value of this property is
nil.Declaration
Objective-C
@property (nonatomic, copy, nullable) NSString *richContents;Swift
var richContents: String? { get set } -
The attributed text contents of the annotation.
Note
The default value of this property is
nil.Declaration
Objective-C
@property (nonatomic, copy, nullable) NSAttributedString *attributedContents;
PTTextWidgetAppearanceViewModel Class Reference