pencilkit

Integrate PKCanvasView, PKToolPicker, and PKDrawing into SwiftUI apps.

Updated Apr 19, 2026
One-click install
npx skills add https://github.com/femitz/flyby --skill pencilkit-femitz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pencilkit
Source: https://github.com/femitz/flyby/tree/main/.agents/skills/pencilkit
Command: npx skills add https://github.com/femitz/flyby --skill pencilkit-femitz

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Streamline adding Apple Pencil input, tool management, and drawing serialization to apps by providing a ready-to-use PencilKit integration with PKCanvasView, PKToolPicker, PKDrawing, and a SwiftUI wrapper, reducing boilerplate and setup time.

Core Features & Use Cases

  • Capture Apple Pencil and finger input via PKCanvasView
  • Manage tools with PKToolPicker and serialize drawings with PKDrawing
  • Wrap PencilKit in SwiftUI for seamless UI composition across iOS, iPadOS, and visionOS
  • Use PencilKit for drawing apps, annotations, handwriting capture, and signature fields

Quick Start

Embed PKCanvasView and PKToolPicker in your SwiftUI view to start capturing PencilKit drawings immediately.

Frequently Asked Questions about pencilkit

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

FAQPage Schema
How do I add Apple Pencil drawing support to a SwiftUI app?

You can add Apple Pencil drawing support by embedding a PKCanvasView and PKToolPicker within your SwiftUI view to immediately start capturing PencilKit drawings. This provides ready-to-use input capture and tool management.

Does PencilKit work with visionOS for handwriting capture and annotations?

Yes, PencilKit works across iOS, iPadOS, and visionOS for drawing, annotations, handwriting capture, and signature fields. It uses SwiftUI wrappers for seamless UI composition across these platforms.

How do I serialize and save PencilKit drawings in my app?

You can serialize and save PencilKit drawings using the PKDrawing API. It handles the data representation of canvas input so you can persist or export user drawings.

What's the best way to manage Apple Pencil tools in a drawing canvas?

The best way to manage Apple Pencil tools is by integrating the PKToolPicker alongside your PKCanvasView. This provides the standard PencilKit tool picker UI for selecting pens, erasers, and colors.

Do I need Swift 6.3 and iOS 26 to use PencilKit integration?

You need Swift 6.3 and iOS 26+ to fully leverage all PencilKit features. The integration focuses on wrapping PKCanvasView, PKToolPicker, and PKDrawing for SwiftUI.

Can I use PencilKit to create signature fields and annotation overlays?

Yes, you can use PencilKit for signature fields and annotation overlays. It captures Apple Pencil and finger input via PKCanvasView, which you can overlay on existing content in SwiftUI.