PSPDFTextSelectionMode

Objective-C

enum PSPDFTextSelectionMode {}

Swift

@frozen enum TextSelectionMode : UInt

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.

    Additionally, on iOS 12 this mode uses two loupes and results
    either in a selection of one word or one image.
    

    Declaration

    Objective-C

    PSPDFTextSelectionModeRegular

    Swift

    case regular = 0
  • 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
  • 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