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 }