PSPDFColorPreset
Model class used to define custom color presets.
-
Unavailable
Not the designated initializer
Declaration
Objective-C
PSPDF_EMPTY_INIT_UNAVAILABLE
-
Unavailable
Not the designated initializer
Declaration
Objective-C
PSPDF_EMPTY_INIT_UNAVAILABLE
-
Declaration
Objective-C
+ (nonnull PSPDFColorPreset *)presetWithColor:(nullable UIColor *)color;
Swift
/*not inherited*/ init(color: UIColor?)
-
Creates a new custom preset.
Declaration
Objective-C
+ (nonnull PSPDFColorPreset *)presetWithColor:(nullable UIColor *)color
fillColor:(nullable UIColor *)fillColor
alpha:(CGFloat)alpha;
Swift
/*not inherited*/ init(color: UIColor?, fill fillColor: UIColor?, alpha: CGFloat)
-
The primary preset color (the content color).
Note
The color will be standardized to the RGB color space with an alpha value of 1.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) UIColor *color;
-
Declaration
Objective-C
@property (nonatomic, readonly, nullable) UIColor *colorWithAlpha;
Swift
var colorWithAlpha: UIColor? { get }
-
The secondary preset color (fill color).
Note
The color will be standardized to the RGB color space with an alpha value of 1.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) UIColor *fillColor;
Swift
var fillColor: UIColor? { get }
-
Declaration
Objective-C
@property (nonatomic, readonly, nullable) UIColor *fillColorWithAlpha;
Swift
var fillColorWithAlpha: UIColor? { get }
-
Declaration
Objective-C
@property (nonatomic, readonly) CGFloat alpha;
Swift
var alpha: CGFloat { get }