---
title: accessoryItem
framework: pencilkit
role: symbol
role_heading: Instance Property
path: pencilkit/pktoolpicker/accessoryitem
---

# accessoryItem

An optional button that appears at the trailing edge of the tool picker.

## Declaration

```swift
var accessoryItem: UIBarButtonItem? { get set }
```

## Discussion

Discussion Use this property to display a button in the tool picker when enough space is available. You can use this button to surface an additional behavior in the picker, such as showing a menu for adding different shapes to the canvas.
