
Pencilkit
Drawing-capture toolkit with PKCanvasView, PKToolPicker, and PKDrawing serialization, plus content-version compatibility gating for sync.
- skills.sh installs
- 3.3K
- GitHub stars
- 1.3K
- last updated
- Aug 21, 2026
What it does
- Covers capture-to-export workflow: canvas capture, serialization, version gating, sync, and image export
- Includes drawing policies (
.default,.anyInput,.pencilOnly), ink types, and PKDrawing save/load with atomic writes - Enforces decode validation with a retry loop, preserving original bytes rather than suppressing failures with
try? - Designed for drawing apps, annotation, handwriting, and signature features on iOS, iPadOS, and visionOS
Install
$ npx -y skills add dpearson2699/swift-ios-skills --skill pencilkit -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
PencilKit
Capture Apple Pencil and finger input using PKCanvasView, manage drawing
tools with PKToolPicker, serialize drawings with PKDrawing, and wrap PencilKit in SwiftUI.
Contents
- Setup
- Capture-to-Export Workflow
- PKCanvasView Basics
- PKToolPicker
- PKDrawing Serialization
- Content Version Compatibility
- Exporting to Image
- Stroke Inspection
- SwiftUI Integration
- PaperKit Relationship
- Common Mistakes
- Review Checklist
- References
Setup
PencilKit requires no entitlements or Info.plist entries. Import PencilKit
and create a PKCanvasView.
import PencilKit
Platform availability: iOS 13+, iPadOS 13+, Mac Catalyst 13.1+, visionOS 1.0+.
Capture-to-Export Workflow
Details
- Repository
- github.com/dpearson2699/swift-ios-skills
- Category
- Mobile Apps
- First seen
- May 16, 2026
More from dpearson2699/swift-ios-skills
All 94- Ios Simulator3.3K
- Carplay3.3K
- Scenekit3.3K
- Accessorysetupkit3.3K
- Homekit3.3K
- Callkit3.3K
- Cryptotokenkit3.3K
- Financekit3.3K
- Paperkit3.3K
- Adattributionkit3.3K
- Passkit3.3K
- Audioaccessorykit3.3K
- Dockkit3.3K
- Swift Security3.3K
- Browserenginekit3.2K
- Appmigrationkit3.2K
- Relevancekit3.2K
- Sensorkit3.2K
- Tabletopkit3.2K
- App Store Optimization3.1K
- Swift Api Design Guidelines3.1K
- Swiftlint2.9K
- Swift Formatstyle2.9K
- Core Data2.9K
Similar to Pencilkit
More Mobile Apps
paperkitSkilldpearson2699/swift-ios-skills3.3K installsApple's PaperKit framework for markup editing with shapes, text, images, and PencilKit drawing in one canvas.
pdfkitSkilldpearson2699/swift-ios-skills3.4K installsSwift framework guide for displaying, annotating, and manipulating PDF documents with PDFView, PDFDocument, and PDFAnnotation.
TldrawMCP servertldraw51.5K starsCanvas access to a live tldraw editor: draw, edit, and run JavaScript against shapes.
ExcalidrawMCP serveryctimlin2.7K starsLive Excalidraw canvas for AI agents to create, inspect, and export diagrams over MCP.
app-store-screenshotsSkillparthjadhav/app-store-screenshots16.2K installsScaffolds a Next.js editor for designing and exporting App Store and Google Play marketing screenshots.
excalidraw-skillSkilllingzhi227/agent-research-skills1.6K installsProgrammatic canvas toolkit that draws, refines, and exports Excalidraw diagrams through MCP tools with live sync.