{"id":"1f2ac70b-0832-443a-b4ec-43cb32a6123b","shortId":"4AFVUc","kind":"skill","title":"paperkit","tagline":"Add drawings, shapes, and a consistent markup experience using PaperKit. Use when integrating PaperMarkupViewController for markup editing, adding shape recognition, working with PaperMarkup data models, embedding markup tools in document editors, or building annotation features ","description":"# PaperKit\n\n> **Beta-sensitive.** PaperKit is new in iOS/iPadOS 26, macOS 26, and visionOS 26. API surface may change. Verify details against current Apple documentation before shipping.\n\nPaperKit provides a unified markup experience — the same framework powering markup in Notes, Screenshots, QuickLook, and Journal. It combines PencilKit drawing with structured markup elements (shapes, text boxes, images, lines) in a single canvas managed by `PaperMarkupViewController`. Requires Swift 6.3 and the iOS 26+ SDK.\n\n## Contents\n\n- [Setup](#setup)\n- [PaperMarkupViewController](#papermarkupviewcontroller)\n- [PaperMarkup Data Model](#papermarkup-data-model)\n- [Insertion Controllers](#insertion-controllers)\n- [FeatureSet Configuration](#featureset-configuration)\n- [Integration with PencilKit](#integration-with-pencilkit)\n- [SwiftUI Integration](#swiftui-integration)\n- [Common Mistakes](#common-mistakes)\n- [Review Checklist](#review-checklist)\n- [References](#references)\n\n## Setup\n\nPaperKit requires no entitlements or special Info.plist entries.\n\n```swift\nimport PaperKit\n```\n\n**Platform availability:** iOS 26.0+, iPadOS 26.0+, Mac Catalyst 26.0+, macOS 26.0+, visionOS 26.0+.\n\nThree core components:\n\n| Component | Role |\n|---|---|\n| `PaperMarkupViewController` | Interactive canvas for creating and displaying markup and drawing |\n| `PaperMarkup` | Data model for serializing all markup elements and PencilKit drawing |\n| `MarkupEditViewController` / `MarkupToolbarViewController` | Insertion UI for adding markup elements |\n\n## PaperMarkupViewController\n\nThe primary view controller for interactive markup. Provides a scrollable canvas for freeform PencilKit drawing and structured markup elements. Conforms to `Observable` and `PKToolPickerObserver`.\n\n### Basic UIKit Setup\n\n```swift\nimport PaperKit\nimport PencilKit\nimport UIKit\n\nclass MarkupViewController: UIViewController, PaperMarkupViewController.Delegate {\n    var paperVC: PaperMarkupViewController!\n    var toolPicker: PKToolPicker!\n\n    override func viewDidLoad() {\n        super.viewDidLoad()\n\n        let markup = PaperMarkup(bounds: view.bounds)\n        paperVC = PaperMarkupViewController(\n            markup: markup,\n            supportedFeatureSet: .latest\n        )\n        paperVC.delegate = self\n\n        addChild(paperVC)\n        paperVC.view.frame = view.bounds\n        paperVC.view.autoresizingMask = [.flexibleWidth, .flexibleHeight]\n        view.addSubview(paperVC.view)\n        paperVC.didMove(toParent: self)\n\n        toolPicker = PKToolPicker()\n        toolPicker.addObserver(paperVC)\n        paperVC.pencilKitResponderState.activeToolPicker = toolPicker\n        paperVC.pencilKitResponderState.toolPickerVisibility = .visible\n    }\n\n    func paperMarkupViewControllerDidChangeMarkup(\n        _ controller: PaperMarkupViewController\n    ) {\n        guard let markup = controller.markup else { return }\n        Task { try await save(markup) }\n    }\n}\n```\n\n### Key Properties\n\n| Property | Type | Description |\n|---|---|---|\n| `markup` | `PaperMarkup?` | The current data model |\n| `selectedMarkup` | `PaperMarkup` | Currently selected content |\n| `isEditable` | `Bool` | Whether the canvas accepts input |\n| `isRulerActive` | `Bool` | Whether the ruler overlay is shown |\n| `drawingTool` | `any PKTool` | Active PencilKit drawing tool |\n| `contentView` | `UIView?` / `NSView?` | Background view rendered beneath markup |\n| `zoomRange` | `ClosedRange<CGFloat>` | Min/max zoom scale |\n| `supportedFeatureSet` | `FeatureSet` | Enabled PaperKit features |\n\n### Touch Modes\n\n`PaperMarkupViewController.TouchMode` has two cases: `.drawing` and `.selection`.\n\n```swift\npaperVC.directTouchMode = .drawing    // Finger draws\npaperVC.directTouchMode = .selection  // Finger selects elements\npaperVC.directTouchAutomaticallyDraws = true  // System decides based on Pencil state\n```\n\n### Content Background\n\nSet any view beneath the markup layer for templates, document pages, or images being annotated:\n\n```swift\npaperVC.contentView = UIImageView(image: UIImage(named: \"template\"))\n```\n\n### Delegate Callbacks\n\n| Method | Called when |\n|---|---|\n| `paperMarkupViewControllerDidChangeMarkup(_:)` | Markup content changes |\n| `paperMarkupViewControllerDidBeginDrawing(_:)` | User starts drawing |\n| `paperMarkupViewControllerDidChangeSelection(_:)` | Selection changes |\n| `paperMarkupViewControllerDidChangeContentVisibleFrame(_:)` | Visible frame changes |\n\n## PaperMarkup Data Model\n\n`PaperMarkup` is a `Sendable` struct that stores all markup elements and PencilKit drawing data.\n\n### Creating and Persisting\n\n```swift\n// New empty model\nlet markup = PaperMarkup(bounds: CGRect(x: 0, y: 0, width: 612, height: 792))\n\n// Load from saved data\nlet markup = try PaperMarkup(dataRepresentation: savedData)\n\n// Save — dataRepresentation() is async throws\nfunc save(_ markup: PaperMarkup) async throws {\n    let data = try await markup.dataRepresentation()\n    try data.write(to: fileURL)\n}\n```\n\n### Inserting Content Programmatically\n\n```swift\n// Text box\nmarkup.insertNewTextbox(\n    attributedText: AttributedString(\"Annotation\"),\n    frame: CGRect(x: 50, y: 100, width: 200, height: 40),\n    rotation: 0\n)\n\n// Image\nmarkup.insertNewImage(cgImage, frame: CGRect(x: 50, y: 200, width: 300, height: 200), rotation: 0)\n\n// Shape\nlet shapeConfig = ShapeConfiguration(\n    type: .rectangle,\n    fillColor: UIColor.systemBlue.withAlphaComponent(0.2).cgColor,\n    strokeColor: UIColor.systemBlue.cgColor,\n    lineWidth: 2\n)\nmarkup.insertNewShape(configuration: shapeConfig, frame: CGRect(x: 50, y: 420, width: 200, height: 100), rotation: 0)\n\n// Line with arrow end marker\nlet lineConfig = ShapeConfiguration(type: .line, fillColor: nil, strokeColor: UIColor.red.cgColor, lineWidth: 3)\nmarkup.insertNewLine(\n    configuration: lineConfig,\n    from: CGPoint(x: 50, y: 550), to: CGPoint(x: 250, y: 550),\n    startMarker: false, endMarker: true\n)\n```\n\nShape types: `.rectangle`, `.roundedRectangle`, `.ellipse`, `.line`, `.arrowShape`, `.star`, `.chatBubble`, `.regularPolygon`.\n\n### Other Operations\n\n```swift\nmarkup.append(contentsOf: otherMarkup)       // Merge another PaperMarkup\nmarkup.append(contentsOf: pkDrawing)          // Merge a PKDrawing\nmarkup.transformContent(CGAffineTransform(...)) // Apply affine transform\nmarkup.removeContentUnsupported(by: featureSet) // Strip unsupported elements\n```\n\n| Property | Description |\n|---|---|\n| `bounds` | Coordinate space of the markup |\n| `contentsRenderFrame` | Tight bounding box of all content |\n| `featureSet` | Features used by this data model's content |\n| `indexableContent` | Extractable text for search indexing |\n\nUse `suggestedFrameForInserting(contentInFrame:)` on the view controller to get a frame that avoids overlapping existing content.\n\n## Insertion Controllers\n\n### MarkupEditViewController (iOS, iPadOS, visionOS)\n\nPresents a popover menu for inserting shapes, text boxes, lines, and other elements.\n\n```swift\nfunc showInsertionMenu(from barButtonItem: UIBarButtonItem) {\n    let editVC = MarkupEditViewController(\n        supportedFeatureSet: .latest,\n        additionalActions: []\n    )\n    editVC.delegate = paperVC  // PaperMarkupViewController conforms to the delegate\n    editVC.modalPresentationStyle = .popover\n    editVC.popoverPresentationController?.barButtonItem = barButtonItem\n    present(editVC, animated: true)\n}\n```\n\n### MarkupToolbarViewController (macOS, Mac Catalyst)\n\nProvides a toolbar with drawing tools and insertion buttons.\n\n```swift\nlet toolbar = MarkupToolbarViewController(supportedFeatureSet: .latest)\ntoolbar.delegate = paperVC\naddChild(toolbar)\ntoolbar.view.frame = toolbarContainerView.bounds\ntoolbarContainerView.addSubview(toolbar.view)\ntoolbar.didMove(toParent: self)\n```\n\nBoth controllers must use the same `FeatureSet` as the `PaperMarkupViewController`.\n\n## FeatureSet Configuration\n\n`FeatureSet` controls which markup capabilities are available.\n\n| Preset | Description |\n|---|---|\n| `.latest` | All current features — recommended starting point |\n| `.version1` | Features from version 1 |\n| `.empty` | No features enabled |\n\n### Customizing\n\n```swift\nvar features = FeatureSet.latest\nfeatures.remove(.stickers)\nfeatures.remove(.images)\n\n// Or build up from empty\nvar features = FeatureSet.empty\nfeatures.insert(.drawing)\nfeatures.insert(.text)\nfeatures.insert(.shapeStrokes)\n```\n\n### Available Features\n\n| Feature | Description |\n|---|---|\n| `.drawing` | Freeform PencilKit drawing |\n| `.text` | Text box insertion |\n| `.images` | Image insertion |\n| `.stickers` | Sticker insertion |\n| `.links` | Link annotations |\n| `.loupes` | Loupe/magnifier elements |\n| `.shapeStrokes` | Shape outlines |\n| `.shapeFills` | Shape fills |\n| `.shapeOpacity` | Shape opacity control |\n\n### HDR Support\n\nSet `colorMaximumLinearExposure` above `1.0` on both the `FeatureSet` and `PKToolPicker`:\n\n```swift\nvar features = FeatureSet.latest\nfeatures.colorMaximumLinearExposure = 4.0\ntoolPicker.maximumLinearExposure = features.colorMaximumLinearExposure\n```\n\nUse `view.window?.windowScene?.screen.potentialEDRHeadroom` to match the device screen's capability. Use `1.0` for SDR-only.\n\n### Shapes, Inks, and Line Markers\n\n```swift\nfeatures.shapes = [.rectangle, .ellipse, .arrowShape, .line]\nfeatures.inks = [.pen, .pencil, .marker]\nfeatures.lineMarkerPositions = .all  // .single, .double, .plain, or .all\n```\n\n## Integration with PencilKit\n\nPaperKit accepts `PKTool` for drawing and can append `PKDrawing` content.\n\n```swift\nimport PencilKit\n\n// Set drawing tool\npaperVC.drawingTool = PKInkingTool(.pen, color: .black, width: 3)\n\n// Merge existing PKDrawing into markup\nmarkup.append(contentsOf: existingPKDrawing)\n```\n\n### Tool Picker Setup\n\n```swift\nlet toolPicker = PKToolPicker()\ntoolPicker.addObserver(paperVC)\npaperVC.pencilKitResponderState.activeToolPicker = toolPicker\npaperVC.pencilKitResponderState.toolPickerVisibility = .visible\n```\n\nSetting `toolPickerVisibility` to `.hidden` keeps the picker functional (responds to Pencil gestures) but not visible, enabling the mini tool picker experience.\n\n### Content Version Compatibility\n\n`FeatureSet.ContentVersion` maps to `PKContentVersion`:\n\n```swift\nlet pkVersion = features.contentVersion.pencilKitContentVersion\n```\n\n## SwiftUI Integration\n\nWrap `PaperMarkupViewController` in `UIViewControllerRepresentable`:\n\n```swift\nstruct MarkupView: UIViewControllerRepresentable {\n    @Binding var markup: PaperMarkup\n\n    func makeUIViewController(context: Context) -> PaperMarkupViewController {\n        let vc = PaperMarkupViewController(markup: markup, supportedFeatureSet: .latest)\n        vc.delegate = context.coordinator\n        let toolPicker = PKToolPicker()\n        toolPicker.addObserver(vc)\n        vc.pencilKitResponderState.activeToolPicker = toolPicker\n        vc.pencilKitResponderState.toolPickerVisibility = .visible\n        context.coordinator.toolPicker = toolPicker\n        return vc\n    }\n\n    func updateUIViewController(_ vc: PaperMarkupViewController, context: Context) {\n        if vc.markup != markup { vc.markup = markup }\n    }\n\n    func makeCoordinator() -> Coordinator { Coordinator(parent: self) }\n\n    class Coordinator: NSObject, PaperMarkupViewController.Delegate {\n        let parent: MarkupView\n        var toolPicker: PKToolPicker?\n        init(parent: MarkupView) { self.parent = parent }\n\n        func paperMarkupViewControllerDidChangeMarkup(\n            _ controller: PaperMarkupViewController\n        ) {\n            if let markup = controller.markup { parent.markup = markup }\n        }\n    }\n}\n```\n\n## Common Mistakes\n\n### Mismatched FeatureSets\n\n```swift\n// DON'T\nlet paperVC = PaperMarkupViewController(markup: m, supportedFeatureSet: .latest)\nlet editVC = MarkupEditViewController(supportedFeatureSet: .version1, additionalActions: [])\n\n// DO — use the same FeatureSet for both\nlet features = FeatureSet.latest\nlet paperVC = PaperMarkupViewController(markup: m, supportedFeatureSet: features)\nlet editVC = MarkupEditViewController(supportedFeatureSet: features, additionalActions: [])\n```\n\n### Ignoring Content Version on Load\n\n```swift\n// DON'T\nlet markup = try PaperMarkup(dataRepresentation: data)\npaperVC.markup = markup\n\n// DO — check version compatibility\nlet markup = try PaperMarkup(dataRepresentation: data)\nif markup.featureSet.isSubset(of: paperVC.supportedFeatureSet) {\n    paperVC.markup = markup\n} else {\n    showVersionMismatchAlert()\n}\n```\n\n### Blocking Main Thread with Serialization\n\n```swift\n// DON'T — dataRepresentation() is async, don't try to work around it\n\n// DO — save from an async context\nfunc paperMarkupViewControllerDidChangeMarkup(_ controller: PaperMarkupViewController) {\n    guard let markup = controller.markup else { return }\n    Task {\n        let data = try await markup.dataRepresentation()\n        try data.write(to: fileURL)\n    }\n}\n```\n\n### Forgetting to Retain the Tool Picker\n\n```swift\n// DON'T — local variable gets deallocated\nfunc viewDidLoad() {\n    let toolPicker = PKToolPicker()\n    toolPicker.addObserver(paperVC)\n}\n\n// DO — store as instance property\nvar toolPicker: PKToolPicker!\n```\n\n### Wrong Insertion Controller for Platform\n\n```swift\n// DON'T — MarkupEditViewController is iOS/iPadOS/visionOS only\n\n// DO\n#if os(macOS)\nlet toolbar = MarkupToolbarViewController(supportedFeatureSet: features)\n#else\nlet editVC = MarkupEditViewController(supportedFeatureSet: features, additionalActions: [])\n#endif\n```\n\n## Review Checklist\n\n- [ ] `import PaperKit` present; deployment target is iOS 26+ / macOS 26+ / visionOS 26+\n- [ ] `PaperMarkup` initialized with bounds matching content size\n- [ ] Same `FeatureSet` used for `PaperMarkupViewController` and insertion controller\n- [ ] `dataRepresentation()` called in async context\n- [ ] `PKToolPicker` retained as a stored property\n- [ ] Delegate set on `PaperMarkupViewController` for change callbacks\n- [ ] Content version checked when loading saved data\n- [ ] Correct insertion controller per platform (`MarkupEditViewController` vs `MarkupToolbarViewController`)\n- [ ] `MarkupError` cases handled on deserialization\n- [ ] HDR: `colorMaximumLinearExposure` set on both `FeatureSet` and `PKToolPicker`\n\n## References\n\n- [PaperKit documentation](https://sosumi.ai/documentation/paperkit)\n- [Integrating PaperKit into your app](https://sosumi.ai/documentation/paperkit/getting-started-with-paperkit)\n- [Meet PaperKit — WWDC25](https://sosumi.ai/videos/play/wwdc2025/285/)\n- The `pencilkit` skill covers PencilKit drawing, tool pickers, and PKDrawing serialization\n- [references/paperkit-patterns.md](references/paperkit-patterns.md) — data persistence, rendering, multi-platform setup, custom feature sets","tags":["paperkit","swift","ios","skills","dpearson2699","accessibility","agent-skills","ai-coding","apple","claude-code","codex-skills","cursor-skills"],"capabilities":["skill","source-dpearson2699","skill-paperkit","topic-accessibility","topic-agent-skills","topic-ai-coding","topic-apple","topic-claude-code","topic-codex-skills","topic-cursor-skills","topic-ios","topic-ios-development","topic-liquid-glass","topic-localization","topic-mapkit"],"categories":["swift-ios-skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/dpearson2699/swift-ios-skills/paperkit","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add dpearson2699/swift-ios-skills","source_repo":"https://github.com/dpearson2699/swift-ios-skills","install_from":"skills.sh"}},"qualityScore":"0.684","qualityRationale":"deterministic score 0.68 from registry signals: · indexed on github topic:agent-skills · 468 github stars · SKILL.md body (14,664 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-04-22T00:53:43.846Z","embedding":null,"createdAt":"2026-04-18T22:01:08.148Z","updatedAt":"2026-04-22T00:53:43.846Z","lastSeenAt":"2026-04-22T00:53:43.846Z","tsv":"'/documentation/paperkit)':1338 '/documentation/paperkit/getting-started-with-paperkit)':1346 '/videos/play/wwdc2025/285/)':1352 '0':468,470,526,541,570 '0.2':550 '1':797 '1.0':864,891 '100':520,568 '2':555 '200':522,535,539,566 '250':599 '26':46,48,51,107,1267,1269,1271 '26.0':170,172,175,177,179 '3':586,943 '300':537 '4.0':876 '40':524 '420':564 '50':518,533,562,593 '550':595,601 '6.3':103 '612':472 '792':474 'accept':332,922 'activ':345 'ad':19,211 'add':2 'addchild':276,756 'additionalact':718,1099,1122,1256 'affin':634 'anim':733 'annot':35,410,514,845 'anoth':623 'api':52 'app':1343 'append':928 'appl':60 'appli':633 'around':1173 'arrow':573 'arrowshap':612,905 'async':488,494,1167,1179,1290 'attributedstr':513 'attributedtext':512 'avail':168,783,825 'avoid':684 'await':308,499,1195 'background':352,395 'barbuttonitem':711,729,730 'base':390 'basic':239 'beneath':355,399 'beta':39 'beta-sensit':38 'bind':1007 'black':941 'block':1157 'bool':328,335 'bound':266,465,644,652,1275 'box':91,510,653,702,835 'build':34,812 'button':747 'call':421,1288 'callback':419,1304 'canva':97,187,225,331 'capabl':781,889 'case':372,1321 'catalyst':174,738 'cgaffinetransform':632 'cgcolor':551 'cgimag':529 'cgpoint':591,597 'cgrect':466,516,531,560 'chang':55,426,433,437,1303 'chatbubbl':614 'check':1140,1307 'checklist':149,152,1259 'class':249,1055 'closedrang':358 'color':940 'colormaximumlinearexposur':862,1326 'combin':82 'common':143,146,1080 'common-mistak':145 'compat':988,1142 'compon':182,183 'configur':127,130,557,588,776 'conform':234,722 'consist':7 'content':109,326,394,425,506,656,665,687,930,986,1124,1277,1305 'contentinfram':674 'contentsof':620,626,950 'contentsrenderfram':650 'contentview':349 'context':1013,1014,1042,1043,1180,1291 'context.coordinator':1024 'context.coordinator.toolpicker':1034 'control':122,125,218,298,678,689,766,778,858,1072,1183,1231,1286,1314 'controller.markup':303,1077,1188 'coordin':645,1051,1052,1056 'core':181 'correct':1312 'cover':1356 'creat':189,455 'current':59,319,324,788 'custom':802,1373 'data':25,115,119,196,320,439,454,478,497,662,1136,1148,1193,1311,1366 'data.write':502,1198 'datarepresent':483,486,1135,1147,1165,1287 'dealloc':1213 'decid':389 'deleg':418,725,1298 'deploy':1263 'descript':315,643,785,828 'deseri':1324 'detail':57 'devic':886 'display':191 'document':31,61,405,1335 'doubl':914 'draw':3,84,194,205,229,347,373,378,380,430,453,743,820,829,832,925,935,1358 'drawingtool':342 'edit':18 'editor':32 'editvc':714,732,1095,1118,1252 'editvc.delegate':719 'editvc.modalpresentationstyle':726 'editvc.popoverpresentationcontroller':728 'element':88,202,213,233,385,450,641,706,848 'ellips':610,904 'els':304,1155,1189,1250 'embed':27 'empti':460,798,815 'enabl':364,801,980 'end':574 'endif':1257 'endmark':604 'entitl':159 'entri':163 'exist':686,945 'existingpkdraw':951 'experi':9,69,985 'extract':667 'fals':603 'featur':36,366,658,789,794,800,805,817,826,827,873,1108,1116,1121,1249,1255,1374 'features.colormaximumlinearexposure':875,878 'features.contentversion.pencilkitcontentversion':996 'features.inks':907 'features.insert':819,821,823 'features.linemarkerpositions':911 'features.remove':807,809 'features.shapes':902 'featureset':126,129,363,638,657,771,775,777,868,1083,1104,1280,1330 'featureset-configur':128 'featureset.contentversion':989 'featureset.empty':818 'featureset.latest':806,874,1109 'fileurl':504,1200 'fill':854 'fillcolor':548,581 'finger':379,383 'flexibleheight':282 'flexiblewidth':281 'forget':1201 'frame':436,515,530,559,682 'framework':72 'freeform':227,830 'func':260,296,490,708,1011,1038,1049,1070,1181,1214 'function':972 'gestur':976 'get':680,1212 'guard':300,1185 'handl':1322 'hdr':859,1325 'height':473,523,538,567 'hidden':968 'ignor':1123 'imag':92,408,414,527,810,837,838 'import':165,243,245,247,932,1260 'index':671 'indexablecont':666 'info.plist':162 'init':1065 'initi':1273 'ink':897 'input':333 'insert':121,124,208,505,688,699,746,836,839,842,1230,1285,1313 'insertion-control':123 'instanc':1224 'integr':14,131,135,139,142,918,998,1339 'integration-with-pencilkit':134 'interact':186,220 'io':106,169,691,1266 'ios/ipados':45 'ios/ipados/visionos':1239 'ipado':171,692 'isedit':327 'isruleract':334 'journal':80 'keep':969 'key':311 'latest':273,717,753,786,1022,1093 'layer':402 'let':263,301,462,479,496,543,576,713,749,956,994,1016,1025,1059,1075,1087,1094,1107,1110,1117,1131,1143,1186,1192,1216,1245,1251 'line':93,571,580,611,703,899,906 'lineconfig':577,589 'linewidth':554,585 'link':843,844 'load':475,1127,1309 'local':1210 'loup':846 'loupe/magnifier':847 'm':1091,1114 'mac':173,737 'maco':47,176,736,1244,1268 'main':1158 'makecoordin':1050 'makeuiviewcontrol':1012 'manag':98 'map':990 'marker':575,900,910 'markup':8,17,28,68,74,87,192,201,212,221,232,264,270,271,302,310,316,356,401,424,449,463,480,492,649,780,948,1009,1019,1020,1046,1048,1076,1079,1090,1113,1132,1138,1144,1154,1187 'markup.append':619,625,949 'markup.datarepresentation':500,1196 'markup.featureset.issubset':1150 'markup.insertnewimage':528 'markup.insertnewline':587 'markup.insertnewshape':556 'markup.insertnewtextbox':511 'markup.removecontentunsupported':636 'markup.transformcontent':631 'markupeditviewcontrol':206,690,715,1096,1119,1237,1253,1317 'markuperror':1320 'markuptoolbarviewcontrol':207,735,751,1247,1319 'markupview':1005,1061,1067 'markupviewcontrol':250 'match':884,1276 'may':54 'meet':1347 'menu':697 'merg':622,628,944 'method':420 'min/max':359 'mini':982 'mismatch':1082 'mistak':144,147,1081 'mode':368 'model':26,116,120,197,321,440,461,663 'multi':1370 'multi-platform':1369 'must':767 'name':416 'new':43,459 'nil':582 'note':76 'nsobject':1057 'nsview':351 'observ':236 'opac':857 'oper':617 'os':1243 'othermarkup':621 'outlin':851 'overlap':685 'overlay':339 'overrid':259 'page':406 'paperkit':1,11,37,41,64,156,166,244,365,921,1261,1334,1340,1348 'papermarkup':24,114,118,195,265,317,323,438,441,464,482,493,624,1010,1134,1146,1272 'papermarkup-data-model':117 'papermarkupviewcontrol':15,100,112,113,185,214,255,269,299,721,774,1000,1015,1018,1041,1073,1089,1112,1184,1283,1301 'papermarkupviewcontroller.delegate':252,1058 'papermarkupviewcontroller.touchmode':369 'papermarkupviewcontrollerdidbegindraw':427 'papermarkupviewcontrollerdidchangecontentvisiblefram':434 'papermarkupviewcontrollerdidchangemarkup':297,423,1071,1182 'papermarkupviewcontrollerdidchangeselect':431 'papervc':254,268,277,291,720,755,960,1088,1111,1220 'papervc.contentview':412 'papervc.delegate':274 'papervc.didmove':285 'papervc.directtouchautomaticallydraws':386 'papervc.directtouchmode':377,381 'papervc.drawingtool':937 'papervc.markup':1137,1153 'papervc.pencilkitresponderstate.activetoolpicker':292,961 'papervc.pencilkitresponderstate.toolpickervisibility':294,963 'papervc.supportedfeatureset':1152 'papervc.view':284 'papervc.view.autoresizingmask':280 'papervc.view.frame':278 'parent':1053,1060,1066,1069 'parent.markup':1078 'pen':908,939 'pencil':392,909,975 'pencilkit':83,133,137,204,228,246,346,452,831,920,933,1354,1357 'per':1315 'persist':457,1367 'picker':953,971,984,1206,1360 'pkcontentvers':992 'pkdraw':627,630,929,946,1362 'pkinkingtool':938 'pktool':344,923 'pktoolpick':258,289,870,958,1027,1064,1218,1228,1292,1332 'pktoolpickerobserv':238 'pkversion':995 'plain':915 'platform':167,1233,1316,1371 'point':792 'popov':696,727 'power':73 'present':694,731,1262 'preset':784 'primari':216 'programmat':507 'properti':312,313,642,1225,1297 'provid':65,222,739 'quicklook':78 'recognit':21 'recommend':790 'rectangl':547,608,903 'refer':153,154,1333 'references/paperkit-patterns.md':1364,1365 'regularpolygon':615 'render':354,1368 'requir':101,157 'respond':973 'retain':1203,1293 'return':305,1036,1190 'review':148,151,1258 'review-checklist':150 'role':184 'rotat':525,540,569 'roundedrectangl':609 'ruler':338 'save':309,477,485,491,1176,1310 'saveddata':484 'scale':361 'screen':887 'screen.potentialedrheadroom':882 'screenshot':77 'scrollabl':224 'sdk':108 'sdr':894 'sdr-on':893 'search':670 'select':325,375,382,384,432 'selectedmarkup':322 'self':275,287,764,1054 'self.parent':1068 'sendabl':444 'sensit':40 'serial':199,1161,1363 'set':396,861,934,965,1299,1327,1375 'setup':110,111,155,241,954,1372 'shape':4,20,89,542,606,700,850,853,856,896 'shapeconfig':544,558 'shapeconfigur':545,578 'shapefil':852 'shapeopac':855 'shapestrok':824,849 'ship':63 'showinsertionmenu':709 'shown':341 'showversionmismatchalert':1156 'singl':96,913 'size':1278 'skill':1355 'skill-paperkit' 'sosumi.ai':1337,1345,1351 'sosumi.ai/documentation/paperkit)':1336 'sosumi.ai/documentation/paperkit/getting-started-with-paperkit)':1344 'sosumi.ai/videos/play/wwdc2025/285/)':1350 'source-dpearson2699' 'space':646 'special':161 'star':613 'start':429,791 'startmark':602 'state':393 'sticker':808,840,841 'store':447,1222,1296 'strip':639 'strokecolor':552,583 'struct':445,1004 'structur':86,231 'suggestedframeforinsert':673 'super.viewdidload':262 'support':860 'supportedfeatureset':272,362,716,752,1021,1092,1097,1115,1120,1248,1254 'surfac':53 'swift':102,164,242,376,411,458,508,618,707,748,803,871,901,931,955,993,1003,1084,1128,1162,1207,1234 'swiftui':138,141,997 'swiftui-integr':140 'system':388 'target':1264 'task':306,1191 'templat':404,417 'text':90,509,668,701,822,833,834 'thread':1159 'three':180 'throw':489,495 'tight':651 'tool':29,348,744,936,952,983,1205,1359 'toolbar':741,750,757,1246 'toolbar.delegate':754 'toolbar.didmove':762 'toolbar.view':761 'toolbar.view.frame':758 'toolbarcontainerview.addsubview':760 'toolbarcontainerview.bounds':759 'toolpick':257,288,293,957,962,1026,1031,1035,1063,1217,1227 'toolpicker.addobserver':290,959,1028,1219 'toolpicker.maximumlinearexposure':877 'toolpickervis':966 'topar':286,763 'topic-accessibility' 'topic-agent-skills' 'topic-ai-coding' 'topic-apple' 'topic-claude-code' 'topic-codex-skills' 'topic-cursor-skills' 'topic-ios' 'topic-ios-development' 'topic-liquid-glass' 'topic-localization' 'topic-mapkit' 'touch':367 'transform':635 'tri':307,481,498,501,1133,1145,1170,1194,1197 'true':387,605,734 'two':371 'type':314,546,579,607 'ui':209 'uibarbuttonitem':712 'uicolor.red.cgcolor':584 'uicolor.systemblue.cgcolor':553 'uicolor.systemblue.withalphacomponent':549 'uiimag':415 'uiimageview':413 'uikit':240,248 'uiview':350 'uiviewcontrol':251 'uiviewcontrollerrepresent':1002,1006 'unifi':67 'unsupport':640 'updateuiviewcontrol':1039 'use':10,12,659,672,768,879,890,1101,1281 'user':428 'var':253,256,804,816,872,1008,1062,1226 'variabl':1211 'vc':1017,1029,1037,1040 'vc.delegate':1023 'vc.markup':1045,1047 'vc.pencilkitresponderstate.activetoolpicker':1030 'vc.pencilkitresponderstate.toolpickervisibility':1032 'verifi':56 'version':796,987,1125,1141,1306 'version1':793,1098 'view':217,353,398,677 'view.addsubview':283 'view.bounds':267,279 'view.window':880 'viewdidload':261,1215 'visibl':295,435,964,979,1033 'visiono':50,178,693,1270 'vs':1318 'whether':329,336 'width':471,521,536,565,942 'windowscen':881 'work':22,1172 'wrap':999 'wrong':1229 'wwdc25':1349 'x':467,517,532,561,592,598 'y':469,519,534,563,594,600 'zoom':360 'zoomrang':357","prices":[{"id":"c434d866-fa0e-4ced-8a2c-dbd4b76bae52","listingId":"1f2ac70b-0832-443a-b4ec-43cb32a6123b","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"dpearson2699","category":"swift-ios-skills","install_from":"skills.sh"},"createdAt":"2026-04-18T22:01:08.148Z"}],"sources":[{"listingId":"1f2ac70b-0832-443a-b4ec-43cb32a6123b","source":"github","sourceId":"dpearson2699/swift-ios-skills/paperkit","sourceUrl":"https://github.com/dpearson2699/swift-ios-skills/tree/main/skills/paperkit","isPrimary":false,"firstSeenAt":"2026-04-18T22:01:08.148Z","lastSeenAt":"2026-04-22T00:53:43.846Z"}],"details":{"listingId":"1f2ac70b-0832-443a-b4ec-43cb32a6123b","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"dpearson2699","slug":"paperkit","github":{"repo":"dpearson2699/swift-ios-skills","stars":468,"topics":["accessibility","agent-skills","ai-coding","apple","claude-code","codex-skills","cursor-skills","ios","ios-development","liquid-glass","localization","mapkit","networking","storekit","swift","swift-concurrency","swiftdata","swiftui","widgetkit","xcode"],"license":"other","html_url":"https://github.com/dpearson2699/swift-ios-skills","pushed_at":"2026-04-21T19:26:16Z","description":"Agent Skills for iOS 26+, Swift 6.3, SwiftUI, and modern Apple frameworks","skill_md_sha":"fc8b85d923128b5db04b112846ff0e02fd942293","skill_md_path":"skills/paperkit/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/dpearson2699/swift-ios-skills/tree/main/skills/paperkit"},"layout":"multi","source":"github","category":"swift-ios-skills","frontmatter":{"name":"paperkit","description":"Add drawings, shapes, and a consistent markup experience using PaperKit. Use when integrating PaperMarkupViewController for markup editing, adding shape recognition, working with PaperMarkup data models, embedding markup tools in document editors, or building annotation features that need the system-standard markup toolbar. New in iOS 26."},"skills_sh_url":"https://skills.sh/dpearson2699/swift-ios-skills/paperkit"},"updatedAt":"2026-04-22T00:53:43.846Z"}}