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 above customization, text selection will not 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, check out our Configure PDF View Controllers guide.