Disabling Text Selection

To disable text selection in our PDF viewer, set the isTextSelectionEnabled configuration property to false:

let viewController = PDFViewController(document: document) {
    $0.isTextSelectionEnabled = false

With the customization above, text selection won’t be allowed in your view controller. Note that this doesn’t disable creating and editing of free text annotations. Our disabling annotation editing guide demonstrates how to disable this type of interaction as well.

To learn more about PDFConfigurationBuilder, refer to our guide on how to configure PDF view controllers.