PSPDFTextSelectionMode
Objective-C
enum PSPDFTextSelectionMode : NSUInteger {}
Swift
@frozen enum TextSelectionMode : UInt, @unchecked Sendable
Defines the text selection mode in TextSelectionView
.
Requires Features.textSelection
to be enabled and textSelectionEnabled
set to true
.
-
Selecting text in regular mode starts after a long-press and results in a selection with dragging handles.
Declaration
Objective-C
PSPDFTextSelectionModeRegular
Swift
case regular = 0
-
Selecting text in simple mode starts almost immediately on touch down and results in a selection with dragging handles.
This mode is similar to selecting text in Apple Books and is useful for applications where highlighting is a main feature.
Declaration
Objective-C
PSPDFTextSelectionModeSimple
Swift
case simple = 1
-
Selection mode will be chosen based on input device: selecting text with finger or Apple Pencil will use regular mode, while selecting text with trackpad or mouse will use simple mode.
This mode is recommended for most use cases, as it resembles the standard system text selection behavior most closely.
Declaration
Objective-C
PSPDFTextSelectionModeAutomatic
Swift
case automatic = 2