<!--
{
  "availability" : [
    "iOS: 12.1.0 -",
    "iPadOS: 12.1.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 26.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIPencilInteractionDelegate",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UIPencilInteractionDelegate"
  },
  "title" : "UIPencilInteractionDelegate"
}
-->

# UIPencilInteractionDelegate

The interface an object implements to handle double taps or squeezes a person makes on Apple Pencil.

```
@MainActor protocol UIPencilInteractionDelegate : NSObjectProtocol
```

## Topics

### Handling double-tap interactions

[`func pencilInteraction(UIPencilInteraction, didReceiveTap: UIPencilInteraction.Tap)`](/documentation/UIKit/UIPencilInteractionDelegate/pencilInteraction(_:didReceiveTap:))

Tells the delegate when a person double-taps Apple Pencil.

### Handling squeeze interactions

[`func pencilInteraction(UIPencilInteraction, didReceiveSqueeze: UIPencilInteraction.Squeeze)`](/documentation/UIKit/UIPencilInteractionDelegate/pencilInteraction(_:didReceiveSqueeze:))

Tells the delegate when a person squeezes Apple Pencil.

### Deprecated

[`func pencilInteractionDidTap(UIPencilInteraction)`](/documentation/UIKit/UIPencilInteractionDelegate/pencilInteractionDidTap(_:))

Tells the delegate that the user double-tapped Apple Pencil.

## Relationships

### Inherits From

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

---

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)