PTRichTextAppearanceViewModel
@protocol PTRichTextAppearanceViewModel <NSObject>
@required
#pragma mark - Annotation properties
/**
* The properties for the represented free text annotation.
*/
@property (nonatomic, readonly, strong) id<PTRichTextAnnotationProperties> properties;
#pragma mark - Contents
/**
* The unattributed text contents of the annotation, as a string.
*
* @see `PTRichTextAppearanceViewModel.richContents`
*/
@property (nonatomic, copy, nullable) NSString *contents;
/**
* The rich contents of the annotation, as a string.
*
* @see `PTRichTextAppearanceViewModel.contents`
* @see `PTRichTextAppearanceViewModel.attributedContents`
*/
@property (nonatomic, copy, nullable) NSString *richContents;
/**
* The attributed text contents of the annotation.
*
* @see `PTRichTextAppearanceViewModel.richContents`
*/
@property (nonatomic, copy, nullable) NSAttributedString *attributedContents;
#pragma mark - Other attributes
/**
* The amount that the text is inset from the edges of the content.
*/
@property (nonatomic, assign) UIEdgeInsets textContentInset;
@end
Undocumented
-
The properties for the represented free text annotation.
Declaration
Objective-C
@required @property (nonatomic, strong, readonly) id<PTRichTextAnnotationProperties> _Nonnull properties;
Swift
var properties: any PTRichTextAnnotationProperties { get }
-
The unattributed text contents of the annotation, as a string.
Declaration
Objective-C
@required @property (nonatomic, copy, readwrite, nullable) NSString *contents;
Swift
var contents: String? { get set }
-
The rich contents of the annotation, as a string.
Declaration
Objective-C
@required @property (nonatomic, copy, readwrite, nullable) NSString *richContents;
Swift
var richContents: String? { get set }
-
The attributed text contents of the annotation.
Declaration
Objective-C
@required @property (nonatomic, copy, readwrite, nullable) NSAttributedString *attributedContents;
Swift
@NSCopying var attributedContents: NSAttributedString? { get set }
-
The amount that the text is inset from the edges of the content.
Declaration
Objective-C
@required @property (nonatomic, assign, unsafe_unretained, readwrite) UIEdgeInsets textContentInset;
Swift
var textContentInset: UIEdgeInsets { get set }