PTAnnotationStylePresetsGroup
@interface PTAnnotationStylePresetsGroup : NSObject <NSCopying, NSCoding>
A group of PTAnnotStyle instances for the same annotation type with one style denoted as the
selected style.
-
Initializes a newly created
PTAnnotationStylePresetsGroupinstance with the specified styles.Declaration
Objective-C
- (nonnull instancetype)initWithStyles: (nonnull NSArray<PTAnnotStyle *> *)styles;Swift
init(styles: [PTAnnotStyle])Parameters
stylesthe initial styles of the presets group
Return Value
an initialized
PTAnnotationStylePresetsGroupinstance -
Returns an object initialized from data in a given unarchiver.
Declaration
Objective-C
- (nullable instancetype)initWithCoder:(nonnull NSCoder *)coder;Swift
init?(coder: NSCoder)Parameters
coderAn unarchiver object
Return Value
self, initialized using the data in decoder, ornilif the object could not be initialized -
The list of style presets in this preset group.
Declaration
Objective-C
@property (nonatomic, copy) NSArray<PTAnnotStyle *> *_Nonnull styles;Swift
var styles: [PTAnnotStyle] { get set } -
The currently selected style preset in the
stylesproperty.If
stylesis empty, the value of this property isnil.Declaration
Objective-C
@property (nonatomic, weak, nullable) PTAnnotStyle *selectedStyle;Swift
weak var selectedStyle: PTAnnotStyle? { get set }
PTAnnotationStylePresetsGroup Class Reference