PSPDFBookmarkIndicatorButton
Objective-C
@interface PSPDFBookmarkIndicatorButton : UIButton <PSPDFOverridable>
Swift
class BookmarkIndicatorButton : UIButton, Overridable
Custom UIButton
that sets the appropriate bookmark image based on imageType
, and applies a shadow as well.
The image will always have a tint applied to it, based on the normalTintColor
and selectedTintColor
properties
These colors can be customized using regular UIAppearance
APIs. To customize the appearance even further, your can use the
custom image loading API to change the images.
-
Specifies the image type the button should use. Defaults to
PSPDFBookmarkIndicatorImageTypeMedium
.Declaration
Objective-C
@property (nonatomic) PSPDFBookmarkIndicatorImageType imageType;
Swift
var imageType: BookmarkIndicatorButton.ImageType { get set }
-
Specifies the image’s tint color when not selected (bookmarked). Defaults to the system gray.
See
selectedTintColorDeclaration
Objective-C
@property (nonatomic, null_resettable) UIColor *normalTintColor;
Swift
var normalTintColor: UIColor! { get set }
-
Specifies the image’s tint color when selected (bookmarked). Defaults to the system red.
See
normalTintColorDeclaration
Objective-C
@property (nonatomic, null_resettable) UIColor *selectedTintColor;
Swift
var selectedTintColor: UIColor! { get set }