---
title: PKResponderState
framework: pencilkit
role: symbol
role_heading: Class
path: pencilkit/pkresponderstate
---

# PKResponderState

An object that controls PencilKit behavior associated with a responder.

## Declaration

```swift
class PKResponderState
```

## Overview

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. view.pencilKitResponderState.activeToolPicker = PKToolPicker() view.pencilKitResponderState.toolPickerVisibility = .visible

## Topics

### Configuring the tool picker

- [activeToolPicker](pencilkit/pkresponderstate/activetoolpicker.md)
- [PKToolPickerVisibility](pencilkit/pktoolpickervisibility.md)

### Instance Properties

- [toolPickerVisibility](pencilkit/pkresponderstate/toolpickervisibility-7cj3c.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
