PTAnnotationAppearanceView
@interface PTAnnotationAppearanceView : UIView
A view that displays the appearance of a PDF annotation.
-
Initializes a newly created
PTAnnotationAppearanceView
instance.Declaration
Objective-C
- (nonnull instancetype)initWithFrame:(CGRect)frame;
Swift
init(frame: CGRect)
Parameters
frame
The frame of the view.
Return Value
An initialized
PTAnnotationAppearanceView
instance. -
Initializes a
PTAnnotationAppearanceView
instance with a decoder.Declaration
Objective-C
- (nullable instancetype)initWithCoder:(nonnull NSCoder *)coder;
Swift
init?(coder: NSCoder)
Parameters
coder
The decoder.
Return Value
An initialized
PTAnnotationAppearanceView
instance, ornil
if 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
viewModel
The view model.