<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PencilKit",
  "identifier" : "/documentation/PencilKit/PKResponderState",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "PencilKit"
    ],
    "preciseIdentifier" : "c:objc(cs)PKResponderState"
  },
  "title" : "PKResponderState"
}
-->

# PKResponderState

An object that controls PencilKit behavior associated with a responder.

```
class PKResponderState
```

## Overview

Access a responder’s `PKResponderState` through the `pencilKitResponderState` property on any `UIResponder`. Use it to attach a tool picker to a specific view and control when that picker is visible. Tool picker visibility follows the responder chain: if a responder’s visibility is set to `PKToolPickerVisibilityInherited`, it defers to the next responder in the chain. If no responder in the chain specifies a visibility, the tool picker defaults to visible.

```swift
view.pencilKitResponderState.activeToolPicker = PKToolPicker()
view.pencilKitResponderState.toolPickerVisibility = .visible
```

## Topics

### Configuring the tool picker

[`var activeToolPicker: PKToolPicker?`](/documentation/PencilKit/PKResponderState/activeToolPicker)

The current tool picker.

[`enum PKToolPickerVisibility`](/documentation/PencilKit/PKToolPickerVisibility)

Constants that describe the visibility state of a tool picker.

### Instance Properties

[`var toolPickerVisibility: PKToolPickerVisibility?`](/documentation/PencilKit/PKResponderState/toolPickerVisibility-7cj3c)

The visibility state of the tool picker.

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CVarArg`](/documentation/Swift/CVarArg)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)