PTAnnotationAppearanceView
@interface PTAnnotationAppearanceView : UIView
A view that displays the appearance of a PDF annotation.
-
Initializes a newly created
PTAnnotationAppearanceViewinstance.Declaration
Objective-C
- (nonnull instancetype)initWithFrame:(CGRect)frame;Swift
init(frame: CGRect)Parameters
frameThe frame of the view.
Return Value
An initialized
PTAnnotationAppearanceViewinstance. -
Initializes a
PTAnnotationAppearanceViewinstance with a decoder.Declaration
Objective-C
- (nullable instancetype)initWithCoder:(nonnull NSCoder *)coder;Swift
init?(coder: NSCoder)Parameters
coderThe decoder.
Return Value
An initialized
PTAnnotationAppearanceViewinstance, ornilif decoding failed.
-
The current view model represented by this view.
Note
The default value of this property isnil.Declaration
Objective-C
@property (nonatomic, strong, readonly, nullable) PTAnnotationAppearanceViewModel *viewModel;Swift
var viewModel: PTAnnotationAppearanceViewModel<PTAnnot, PTPDFAnnotationProperties>? { get }
-
Configures the view with the provided view model.
Declaration
Objective-C
- (void)configureWithViewModel: (nonnull PTAnnotationAppearanceViewModel *)viewModel;Swift
func configure(with viewModel: PTAnnotationAppearanceViewModel<PTAnnot, PTPDFAnnotationProperties>)Parameters
viewModelThe view model.
PTAnnotationAppearanceView Class Reference