
Pencilkit Drawing
Wraps PKCanvasView, PKToolPicker, and PKDrawing for Apple Pencil input on iOS, iPadOS, and visionOS. Covers the full lifecycle: setting up a canvas with drawing policies (pencil-only, any-input, or default), managing the tool picker with custom ink types from pen and marker to the iOS 26 reed pen, serializing drawings to Data, and exporting to images. The content version compatibility section is the real value here. It maps version1 through version4 to specific ink sets and features, shows how to gate syncing with requiredContentVersion, and explicitly warns against silently overwriting drawings that require newer versions than a recipient can load. If you're building cross-device drawing features or annotation tools that sync, this handles the versioning headaches upfront.
- skills.sh installs
- 403
- GitHub stars
- 1.3K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add dpearson2699/swift-ios-skills --skill pencilkit-drawing --agent claude-codeInstalls into .claude/skills of the current project.
Files
Wraps PKCanvasView, PKToolPicker, and PKDrawing for Apple Pencil input on iOS, iPadOS, and visionOS. Covers the full lifecycle: setting up a canvas with drawing policies (pencil-only, any-input, or default), managing the tool picker with custom ink types from pen and marker to the iOS 26 reed pen, serializing drawings to Data, and exporting to images. The content version compatibility section is the real value here. It maps version1 through version4 to specific ink sets and features, shows how to gate syncing with requiredContentVersion, and explicitly warns against silently overwriting drawings that require newer versions than a recipient can load. If you're building cross-device drawing features or annotation tools that sync, this handles the versioning headaches upfront.
Browse the repository on GitHubSponsors
Details
- Repository
- github.com/dpearson2699/swift-ios-skills
- Category
- Mobile Development
- First seen
- Jun 3, 2026
More from dpearson2699/swift-ios-skills
All 98- Homekit Matter402
- Passkit Wallet401
- Codable Patterns252
- Swiftui Animation5.7K
- Ios Accessibility5.2K
- Swiftui Performance4.8K
- App Store Review4.8K
- Swiftui Patterns4.7K
- Ios Networking4.6K
- Swiftui Navigation4.6K
- Swift Testing4.5K
- Ios Localization4.5K
- Swift Concurrency4.5K
- Swiftui Layout Components4.4K
- Push Notifications4.4K
- Swiftui Liquid Glass4.3K
- Swiftdata4.3K
- Debugging Instruments4.3K
- Swiftui Uikit Interop4.2K
- Storekit4.2K
- Widgetkit4.2K
- Swiftui Gestures4.2K
- Apple On Device Ai4.2K
- Swift Charts4.2K