PSPDFTextSelectionMode

Objective-C

enum PSPDFTextSelectionMode {}

Swift

@frozen enum TextSelectionMode : UInt

Defines the text selection mode in PSPDFTextSelectionView. Requires PSPDFFeatureMaskTextSelection to be enabled and textSelectionEnabled set to YES.

  • Regular text selection mode is similar to Mobile Safari, using two different loupes. A word will be selected on touch up.

    Declaration

    Objective-C

    PSPDFTextSelectionModeRegular

    Swift

    case regular = 0
  • In simple selection mode, the selection behavior starts immediately on touch down. This is similar to Apple Books and useful for applications where highlighting is a main feature.

    Declaration

    Objective-C

    PSPDFTextSelectionModeSimple

    Swift

    case simple = 1
  • Selection mode is chosen based on pointer device: Touch uses regular text selection. Trackpad/Mouse uses simple text selection. (iOS 13.4+, Mac Catalyst)

    Declaration

    Objective-C

    PSPDFTextSelectionModeAutomatic

    Swift

    case automatic = 2