<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PaperKit",
  "identifier" : "/documentation/PaperKit/PaperMarkupViewController/Delegate-swift.protocol",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "PaperKit"
    ],
    "preciseIdentifier" : "s:8PaperKit0A20MarkupViewControllerC8DelegateP"
  },
  "title" : "PaperMarkupViewController.Delegate"
}
-->

# PaperMarkupViewController.Delegate

The interface for responding to interactions in a markup view controller.

```
protocol Delegate : AnyObject
```

## Topics

### Responding to markup changes

[`func paperMarkupViewControllerDidChangeMarkup(PaperMarkupViewController)`](/documentation/PaperKit/PaperMarkupViewController/Delegate-swift.protocol/paperMarkupViewControllerDidChangeMarkup(_:))

Tells the delegate when the markup changes.

[`func paperMarkupViewControllerDidChangeSelection(PaperMarkupViewController)`](/documentation/PaperKit/PaperMarkupViewController/Delegate-swift.protocol/paperMarkupViewControllerDidChangeSelection(_:))

Tells the delegate when the selection changes.

[`func paperMarkupViewControllerDidBeginDrawing(PaperMarkupViewController)`](/documentation/PaperKit/PaperMarkupViewController/Delegate-swift.protocol/paperMarkupViewControllerDidBeginDrawing(_:))

Tells the delegate when a person begins drawing.

[`func paperMarkupViewControllerDidChangeContentVisibleFrame(PaperMarkupViewController)`](/documentation/PaperKit/PaperMarkupViewController/Delegate-swift.protocol/paperMarkupViewControllerDidChangeContentVisibleFrame(_:))

Tells the delegate when a person scrolls or zooms the content.

### Responding to adornment interactions

[`func paperMarkupViewController(PaperMarkupViewController, didTapAdornmentWithID: UUID)`](/documentation/PaperKit/PaperMarkupViewController/Delegate-swift.protocol/paperMarkupViewController(_:didTapAdornmentWithID:))

Tells the delegate when a person taps an adornment.

[`func paperMarkupViewController(PaperMarkupViewController, willUpdateAdornmentWithID: UUID, toProposedAnchor: MarkupAdornment.Anchor) -> MarkupAdornment.Anchor?`](/documentation/PaperKit/PaperMarkupViewController/Delegate-swift.protocol/paperMarkupViewController(_:willUpdateAdornmentWithID:toProposedAnchor:))

Asks the delegate to validate and potentially adjust an adornment’s proposed anchor position.

[`func paperMarkupViewController(PaperMarkupViewController, didUpdateAdornmentWithID: UUID, toAnchor: MarkupAdornment.Anchor)`](/documentation/PaperKit/PaperMarkupViewController/Delegate-swift.protocol/paperMarkupViewController(_:didUpdateAdornmentWithID:toAnchor:))

Tells the delegate when a drag session ends for an adornment.



---

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)