Main Views
-
Back and forward buttons, used for the action stack navigation.
See moreDeclaration
Objective-C
@interface PSPDFBackForwardButton : PSPDFStyleButton <PSPDFOverridable>
Swift
class BackForwardButton : StyleButton, Overridable
-
The user interface view overlay for the
See morePDFViewController
. Contains the thumbnail and page/title label overlays.Declaration
Objective-C
@interface PSPDFUserInterfaceView : PSPDFRelayTouchesView <PSPDFThumbnailBarDelegate, PSPDFScrubberBarDelegate, PSPDFPageLabelViewDelegate, PSPDFOverridable>
Swift
class UserInterfaceView : RelayTouchesView, ThumbnailBarDelegate, ScrubberBarDelegate, PageLabelViewDelegate, Overridable
-
If the cover option is set, this is showed until the play button is pressed.
See moreDeclaration
Objective-C
@interface PSPDFMediaPlayerCoverView : UIView
Swift
class MediaPlayerCoverView : UIView
-
Displays the current page position at the bottom of the screen.
Note
This class connects to the pdfController via KVO.Declaration
Objective-C
@interface PSPDFPageLabelView : PSPDFLabelView <PSPDFOverridable>
Swift
class PageLabelView : PDFLabelView, Overridable
-
Display a single PDF page. View is reused. You can add your own views on top of the
See moreannotationContainerView
(e.g. custom annotations) Events from a attachedUIScrollView
will be relayed to all visiblePDFPageView
classes.Declaration
Objective-C
@interface PSPDFPageView : UIView <PSPDFRenderTaskDelegate, PSPDFResizableViewDelegate, PSPDFOverridable>
Swift
class PDFPageView : UIView, RenderTaskDelegate, ResizableViewDelegate, Overridable
-
The user interface view will relay touches of subviews, but won’t react on touches on this actual view itself.
Note
This is achieved with overridingpointInside:withEvent:
.Declaration
Objective-C
@interface PSPDFRelayTouchesView : PSPDFContainerView
Swift
class RelayTouchesView : PDFContainerView
-
A container view cannot draw content in itself.
It uses a
CATransformLayer
as backing. This allows blend mode pass-through, and is more lightweight than a regular view.Note
UIStackView
uses the same trick for being a purely managing container.Declaration
Objective-C
@interface PSPDFContainerView : UIView
Swift
class PDFContainerView : UIView
-
Handles text and image selection on a page.
Note
Requires theFeatures.textSelection
feature flag.Don’t manually create this class. The initializer here is not exposed.
The selection color is determined by the
See moretintColor
property inherited fromUIView
. On Mac Catalyst, thetintColor
is set to[NSColor selectedContentBackgroundColor]
&unemphasizedSelectedContentBackgroundColor
, depending if the current window is the key window or not.Declaration
Objective-C
@interface PSPDFTextSelectionView : UIView <AVSpeechSynthesizerDelegate, PSPDFOverridable>
Swift
class TextSelectionView : UIView, AVSpeechSynthesizerDelegate, Overridable
-
Button that can use a modern (blurred) or flat style.
You can use UIAppearance to customize the main properties.
[PSPDFStyleButton appearance].buttonStyle = PSPDFButtonStyleFlat; [PSPDFStyleButton appearance].backgroundColor = [UIColor colorWithWhite:0.1 alpha:0.8]; [PSPDFStyleButton appearance].tintColor = UIColor.whiteColor;
Note
The background color can be customized by setting the standardbackgroundColor
UIView
property. If you want to customize the background color, it is recommended that you usePSPDFLabelStyleFlat
, as using the blur effect with a non-translucent background color might produce unexpected results.If you are customizing this view, you might also want to apply similar changes to
See morePSPDFLabelView
.Declaration
Objective-C
@interface PSPDFStyleButton : PSPDFButton
Swift
class StyleButton : PDFButton