---
title: selectedTool
framework: pencilkit
role: symbol
role_heading: Instance Property
path: pencilkit/pktoolpicker/selectedtool-2lptq
---

# selectedTool

The currently selected tool in the tool picker.

## Declaration

```swift
var selectedTool: any PKTool { get set }
```

## Discussion

Discussion This is one of the available tools associated with a PKCanvasView that adopt the PKTool protocol.

## See Also

### Deprecated

- [shared(for:)](pencilkit/pktoolpicker/shared(for:).md)
