---
title: selectedPages
framework: pdfkit
role: symbol
role_heading: Instance Property
path: pdfkit/pdfthumbnailview/selectedpages
---

# selectedPages

Returns an array of PDF pages that correspond to the selected thumbnails in the thumbnail view.

## Declaration

```swift
var selectedPages: [PDFPage]? { get }
```

## Return Value

Return Value An array of PDF pages that correspond to the thumbnails selected in the thumbnail view.

## Discussion

Discussion If the thumbnail view allows multiple selections (if allowsMultipleSelection returns true), you can use this method to get the PDF pages that correspond to the selected thumbnails.

## See Also

### Managing the Behavior of a Thumbnail View

- [allowsDragging](pdfkit/pdfthumbnailview/allowsdragging.md)
- [allowsMultipleSelection](pdfkit/pdfthumbnailview/allowsmultipleselection.md)
