~/talk

PencilKit: From simple drawings to custom creative tools

Talkat SwiftLeeds 2025 · 2025-10-07..10-08· [creative-coding, ios]
slides:none on file

PencilKit provides a ready-made drawing stack: PKCanvasView for rendering, PKDrawing as the vector model, and a floating PKToolPicker that now accepts custom tools on iOS 18. Apple Pencil samples at 240Hz, so apps use Metal for performance and lossy compression (drop colinear points) to avoid multi‑megabyte traces. Erasing uses an additive mask rather than deleting points, and stroke access lets apps move, reorder, recolor or split strokes; export needs bitmaps for non‑PencilKit viewers.

AI-written summary · about

  1. 0:00Introduction and background
  2. 3:42Setting up PencilKit
  3. 5:30PKDrawing data model
  4. 7:18Tools and tool picker
  5. 9:29Summary and wrap-up
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.