PTFreeTextAppearanceViewModel
@interface PTFreeTextAppearanceViewModel
: PTAnnotationAppearanceViewModel <PTFreeText *,
PTFreeTextAnnotationProperties *>
<PTRichTextAppearanceViewModel>
A view model representing the appearance of a free text annotation.
-
Initializes a
PTFreeTextAppearanceViewModelinstance.Declaration
Objective-C
- (nonnull instancetype)init;Swift
init()Return Value
An initialized
PTFreeTextAppearanceViewModelinstance.
-
The properties for the represented free text annotation.
Declaration
Objective-C
@property (nonatomic, strong, readonly) PTFreeTextAnnotationProperties *_Nonnull properties;Swift
var properties: PTFreeTextAnnotationProperties { get }
-
The unattributed text contents of the annotation, as a string.
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 contents of the annotation, as a string.
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;Swift
@NSCopying var attributedContents: NSAttributedString? { get set }
-
The amount that the text is inset from the edges of the content.
Note
The default value of this property is{2, 2, 2, 2}.Declaration
Objective-C
@property (nonatomic) UIEdgeInsets textContentInset;Swift
var textContentInset: UIEdgeInsets { get set }
PTFreeTextAppearanceViewModel Class Reference