PSPDFColorButton

Objective-C


@interface PSPDFColorButton : PSPDFButton <PSPDFOverridable>

Swift

class ColorButton : PDFButton, Overridable

Button that shows a selected color. Highlightable.

  • The shape of the button. Defaults to rounded rectangle.

    Declaration

    Objective-C

    @property (nonatomic) PSPDFColorButtonShape shape;

    Swift

    var shape: ColorButton.Shape { get set }
  • The inset of button content in relation to its bounds.

    Declaration

    Objective-C

    @property (nonatomic) UIEdgeInsets contentInset;

    Swift

    var contentInset: UIEdgeInsets { get set }
  • Current color.

    Declaration

    Objective-C

    @property (nonatomic, nullable) UIColor *color;

    Swift

    var color: UIColor? { get set }
  • Inner border color. Defaults to semi-transparent black.

    Declaration

    Objective-C

    @property (nonatomic, nullable) UIColor *innerBorderColor;

    Swift

    var innerBorderColor: UIColor? { get set }
  • Inner border width. Defaults to 1.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat innerBorderWidth;

    Swift

    var innerBorderWidth: CGFloat { get set }
  • Outer border color. Defaults to the tint color.

    Declaration

    Objective-C

    @property (nonatomic, nullable) UIColor *outerBorderColor;

    Swift

    var outerBorderColor: UIColor? { get set }
  • Outer border width. Defaults to 2.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat outerBorderWidth;

    Swift

    var outerBorderWidth: CGFloat { get set }
  • Padding between outer border and inner border. Defaults to 2.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat outerBorderPadding;

    Swift

    var outerBorderPadding: CGFloat { get set }
  • Deprecated

    Deprecated in PSPDFKit 9.3 for iOS. Please use shape instead.

    If true, the shape will be an ellipse. If false, a rounded rectangle.

    Declaration

    Objective-C

    @property (nonatomic) BOOL displayAsEllipse;

    Swift

    var displayAsEllipse: Bool { get set }
  • Deprecated

    Deprecated in PSPDFKit 9.3 for iOS. Please use outerBorderWidth instead.

    Border width. Defaults to 2.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat borderWidth;

    Swift

    var borderWidth: CGFloat { get set }
  • Deprecated

    Deprecated in PSPDFKit 9.3 for iOS. Please use contentInset instead.

    Indicator size. Defaults to the bounds size.

    Declaration

    Objective-C

    @property (nonatomic) CGSize indicatorSize;

    Swift

    var indicatorSize: CGSize { get set }