---
title: selection
framework: pencilkit
role: symbol
role_heading: Instance Property
path: pencilkit/pkcanvasview/selection
---

# selection

The identifiers of the strokes selected on the canvas.

## Declaration

```swift
var selection: Set<UUID> { get set }
```

## Mentioned in

Recognizing handwriting and converting it to text
