pencilkit

Capture Apple Pencil and finger input in iOS apps using PKCanvasView and PKToolPicker.

Updated Apr 30, 2026
One-click install
npx skills add https://github.com/onymchat/onym-ios --skill pencilkit-onymchat
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pencilkit
Source: https://github.com/onymchat/onym-ios/tree/main/.claude/skills/pencilkit
Command: npx skills add https://github.com/onymchat/onym-ios --skill pencilkit-onymchat

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

PencilKit enables developers to capture Apple Pencil and finger input, provide drawing tools, and serialize drawings, centralizing best practices for immersive drawing experiences on Apple platforms.

Core Features & Use Cases

  • PKCanvasView basics and drawing behavior for pencils and fingers
  • PKToolPicker integration with custom tool items
  • PKDrawing serialization and export to images
  • SwiftUI integration for embedding PencilKit in apps

Quick Start

Create a PKCanvasView, enable PencilKit, and begin capturing input with a default tool.

Frequently Asked Questions about pencilkit

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

FAQPage Schema
How do I capture Apple Pencil input in a SwiftUI app?

Capture Apple Pencil input in SwiftUI by integrating PencilKit. You embed a PKCanvasView to capture strokes and manage drawing behavior for both pencil and finger interactions within your iOS application.

What is the best way to add a drawing tool picker for Apple Pencil on iPadOS?

Add a drawing tool picker on iPadOS by integrating PKToolPicker with your canvas. This provides standard PencilKit tool items for users to select brushes, colors, and erasers for their drawings.

Can I serialize and export PencilKit drawings to an image?

Yes, you can serialize and export PencilKit drawings. The framework supports PKDrawing serialization for saving sketch data and allows you to export the captured canvas content to an image format.

Does PencilKit support finger input alongside Apple Pencil on iOS?

Yes, PencilKit supports finger input alongside Apple Pencil on iOS. You can configure the PKCanvasView drawing behavior to capture strokes from both finger and Apple Pencil interactions.

How do I implement signature capture and handwriting fields in iOS?

Implement signature capture and handwriting fields in iOS using PencilKit. You configure a PKCanvasView to record stylus or touch input, enabling secure handwriting capture and signature fields in your app.