One Logo Pool Ball
PaperKit · IOS API REFERENCE

PaperMarkupViewController.Delegate

protocol · iOS 26.0+ · SDK 27.1

protocol Delegate : AnyObject

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

Members (7)

method · iOS 27.0+

paperMarkupViewController

Swift declaration
func paperMarkupViewController(_ paperMarkupViewController: PaperMarkupViewController, didTapAdornmentWithID id: UUID)

Tells the delegate when a person taps an adornment. - Parameters: - paperMarkupViewController: The `PaperMarkupViewController` containing the adornment. - id: The ID of the adornment the person tapped.

method · iOS 27.0+

paperMarkupViewController

Swift declaration
func paperMarkupViewController(_ paperMarkupViewController: PaperMarkupViewController, didUpdateAdornmentWithID id: UUID, toAnchor anchor: MarkupAdornment.Anchor)

Tells the delegate when a drag session ends for an adornment. - Parameters: - paperMarkupViewController: The `PaperMarkupViewController` containing the adornment. - id: The ID of the adornment that moved. - anchor: The updated anchor for the adornment.

method · iOS 27.0+

paperMarkupViewController

Swift declaration
func paperMarkupViewController(_ paperMarkupViewController: PaperMarkupViewController, willUpdateAdornmentWithID id: UUID, toProposedAnchor proposedAnchor: MarkupAdornment.Anchor) -> MarkupAdornment.Anchor?

Asks the delegate to validate and potentially adjust an adornment's proposed anchor position. - Parameters: - paperMarkupViewController: The `PaperMarkupViewController` containing the adornment. - id: The unique identifier of the adornment being moved. - proposedAnchor: The proposed new anchor position for the adornment. - Returns: The final anchor position to use for the adornment, or `nil` to deny the move.

method · iOS 26.0+

paperMarkupViewControllerDidBeginDrawing

Swift declaration
func paperMarkupViewControllerDidBeginDrawing(_ paperMarkupViewController: PaperMarkupViewController)

Tells the delegate when a person begins drawing. - Parameters: - paperMarkupViewController: The `PaperMarkupViewController` the person is interacting with.

method · iOS 26.0+

paperMarkupViewControllerDidChangeSelection

Swift declaration
func paperMarkupViewControllerDidChangeSelection(_ paperMarkupViewController: PaperMarkupViewController)

Tells the delegate when the selection changes. - Parameters: - paperMarkupViewController: The `PaperMarkupViewController` containing the markup.

method · iOS 26.0+

paperMarkupViewControllerDidChangeContentVisibleFrame

Swift declaration
func paperMarkupViewControllerDidChangeContentVisibleFrame(_ paperMarkupViewController: PaperMarkupViewController)

Tells the delegate when a person scrolls or zooms the content. - Parameters: - paperMarkupViewController: The `PaperMarkupViewController` the person is interacting with.

method · iOS 26.0+

paperMarkupViewControllerDidChangeMarkup

Swift declaration
func paperMarkupViewControllerDidChangeMarkup(_ paperMarkupViewController: PaperMarkupViewController)

Tells the delegate when the markup changes. - Parameters: - paperMarkupViewController: The `PaperMarkupViewController` containing the markup.

Skipped declarations

No declarations were skipped in this snapshot.

All PaperKit types →