---
title: "canvasViewSelectionDidChange(_:)"
framework: pencilkit
role: symbol
role_heading: Instance Method
path: "pencilkit/pkcanvasviewdelegate/canvasviewselectiondidchange(_:)"
---

# canvasViewSelectionDidChange(_:)

Tells the delegate that the selection changes.

## Declaration

```swift
optional func canvasViewSelectionDidChange(_ canvasView: PKCanvasView)
```

## Parameters

- `canvasView`: The canvas view that the selection changed on.
