PSPDFColorPreset


@interface PSPDFColorPreset : PSPDFModel

Model class used to define custom color presets. - see: PSPDFStyleManager

  • Undocumented

    Declaration

    Objective-C

    
    @interface PSPDFColorPreset : PSPDFModel
  • Undocumented

    Declaration

    Objective-C

    
    @interface PSPDFColorPreset : PSPDFModel
  • Creates a new preset with a nil fillColor and alpha set to 1.f.

    Declaration

    Objective-C

    + (nonnull instancetype)presetWithColor:(nullable UIColor *)color;

    Swift

    convenience init(color: UIColor?)
  • Creates a new custom preset.

    Declaration

    Objective-C

    + (nonnull instancetype)presetWithColor:(nullable UIColor *)color
                                  fillColor:(nullable UIColor *)fillColor
                                      alpha:(CGFloat)alpha;

    Swift

    convenience 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.f

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) UIColor *color;

    Swift

    var color: UIColor? { get }
  • The color with added alpha.

    Declaration

    Objective-C

    @property (readonly, nonatomic, 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.f

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) UIColor *fillColor;

    Swift

    var fillColor: UIColor? { get }
  • The fillColor with added alpha.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) UIColor *fillColorWithAlpha;

    Swift

    var fillColorWithAlpha: UIColor? { get }
  • The preset alpha.

    Declaration

    Objective-C

    @property (readonly, nonatomic) CGFloat alpha;

    Swift

    var alpha: CGFloat { get }