paperkit

Integrate PaperMarkupViewController for annotation editors with PencilKit drawing and structured elements.

Updated May 6, 2026
One-click install
npx skills add https://github.com/Roy-wonji/claude-config --skill paperkit-roy-wonji
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: paperkit
Source: https://github.com/Roy-wonji/claude-config/tree/main/skills/swift-ios-skills/skills/paperkit
Command: npx skills add https://github.com/Roy-wonji/claude-config --skill paperkit-roy-wonji

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

PaperKit skill streamlines adding a consistent, system-standard markup experience—freehand drawing plus structured annotations—without building a custom toolbar and data model from scratch.

Core Features & Use Cases

  • Unified markup canvas: Combine PencilKit drawing with structured elements (text boxes, shapes, lines, images) in a single editor managed by PaperMarkupViewController.
  • Structured persistence: Store and reload markup via PaperMarkup dataRepresentation, including version/feature-set compatibility handling.
  • Platform-correct insertion UI: Use MarkupEditViewController on iOS/iPadOS/visionOS and MarkupToolbarViewController on macOS/Mac Catalyst for adding elements consistently.
  • Integration-ready: Render templates/images underneath the markup layer, wrap in SwiftUI, and merge drawings from existing PKDrawing.

Quick Start

Ask the AI to generate a UIKit iOS 26+ integration that embeds PaperMarkupViewController, configures FeatureSet.latest, saves PaperMarkup asynchronously on changes, and shows MarkupEditViewController insertion from a toolbar button.

Frequently Asked Questions about paperkit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add structured annotations and PencilKit drawing to a single iOS markup canvas?

Use PaperMarkupViewController to combine PencilKit freehand drawing with structured elements like text boxes, shapes, lines, and images in a single unified markup canvas on iOS 26+.

Can I use PaperKit markup editors on macOS and Mac Catalyst?

PaperKit supports macOS and Mac Catalyst by using MarkupToolbarViewController for element insertion, while iOS, iPadOS, and visionOS use MarkupEditViewController for platform-correct insertion UI.

How do I persist and reload document markup with PaperKit?

Store and reload markup via PaperMarkup dataRepresentation, which handles serialization while managing content version and supportedFeatureSet compatibility for structured persistence.

What is the best way to configure PaperKit initialization and asynchronous auto-save?

Initialize PaperMarkupViewController with supportedFeatureSet, delegate auto-save in async contexts, and configure platform-appropriate insertion controllers to handle HDR and tool-picker configuration safely.

Does PaperKit work with existing SwiftUI views and PKDrawing data?

Yes, you can render templates or images underneath the markup layer, wrap the UIKit PaperMarkupViewController in SwiftUI, and merge drawings from existing PKDrawing objects.

Why does my PaperMarkup data fail to load after an iOS update?

PaperMarkup serialization requires handling content version and feature-set compatibility; ensure your supportedFeatureSet configuration matches the version of the stored dataRepresentation to prevent load failures.