---
title: "Text selection in iOS PDF viewer | Nutrient SDK"
canonical_url: "https://www.nutrient.io/guides/ios/features/text-selection/"
md_url: "https://www.nutrient.io/guides/ios/features/text-selection.md"
last_updated: "2026-05-14T16:53:43.888Z"
description: "Text selection is controlled via TextSelectionView, which is part of every PDFPageView, and it can be accessed using the selectionView property."
---

# Selecting text in our iOS viewer

Text selection is controlled via [`TextSelectionView`](https://www.nutrient.io/api/ios/documentation/pspdfkitui/textselectionview), which is part of every [`PDFPageView`](https://www.nutrient.io/api/ios/documentation/pspdfkitui/pdfpageview), and it can be accessed using the [`selectionView`](https://www.nutrient.io/api/ios/documentation/pspdfkitui/pdfpageview/selectionview) property.

[`PDFViewControllerDelegate`](https://www.nutrient.io/api/ios/documentation/pspdfkitui/pdfviewcontrollerdelegate) has delegate methods that allow you to selectively block text selection ([`pdfViewController(_:shouldSelectText:with:at:on:)`](https://www.nutrient.io/api/ios/documentation/pspdfkitui/pdfviewcontrollerdelegate/pdfviewcontroller(_:shouldselecttext:with:at:on:))) and to be notified whenever a text has been selected ([`pdfViewController(_:didSelectText:with:at:on:)`](https://www.nutrient.io/api/ios/documentation/pspdfkitui/pdfviewcontrollerdelegate/pdfviewcontroller(_:didselecttext:with:at:on:))).

Another flexible option is the [`allTextInteractions`](https://www.nutrient.io/api/ios/documentation/pspdfkitui/documentviewinteractions/alltextinteractions) [interaction component](https://www.nutrient.io/guides/ios/customizing-the-interface/handling-user-interactions.md).

Text selection can also be disabled via the [`isTextSelectionEnabled`](https://www.nutrient.io/api/ios/documentation/pspdfkitui/pdfconfiguration/istextselectionenabled) switch in the configuration object.

Text can be programmatically selected via setting [`selectedGlyphs`](https://www.nutrient.io/api/ios/documentation/pspdfkitui/textselectionview/selectedglyphs) or [`selectedImage`](https://www.nutrient.io/api/ios/documentation/pspdfkitui/textselectionview/selectedimage) for image selection. Set these properties to `nil` to clear the current selection.
---

## Related pages

- [Drag and drop text or images in our iOS viewer](/guides/ios/features/drag-and-drop.md)
- [Keyboard shortcuts in our iOS viewer](/guides/ios/features/keyboard-shortcuts.md)
- [Customize zooming options in our iOS viewer](/guides/ios/miscellaneous/zooming.md)
- [Trackpad and mouse support in our iOS viewer](/guides/ios/features/trackpad-and-mouse-support.md)
- [Customize user interactions on iOS](/guides/ios/customizing-the-interface/handling-user-interactions.md)

