<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PencilKit",
  "identifier" : "/documentation/PencilKit/PKToolPicker/accessoryItem",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "PencilKit"
    ],
    "preciseIdentifier" : "c:objc(cs)PKToolPicker(py)accessoryItem"
  },
  "title" : "accessoryItem"
}
-->

# accessoryItem

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

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

## 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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)