-
What's new in PencilKit
PencilKit helps power creativity, writing, drawing, and animation in your iPad apps. Explore the latest improvements to our drawing and annotation framework, and discover how you can take advantage of APIs like PKToolPicker, PKCanvasView, and PKStroke to support new features in illustration and writing apps.
To get the most out of this session, you should have a basic understanding of PencilKit. If you want to a refresher, “Introduction to PencilKit” from WWDC19 is a great place to start.Ressources
Vidéos connexes
WWDC20
WWDC19
-
Rechercher dans cette vidéo…
-
-
5:21 - PKCanvasView drawingPolicy
var drawingPolicy: PKCanvasViewDrawingPolicy -
7:06 - PKToolPicker showDrawingPolicyControls
PKToolPicker.showsDrawingPolicyControls -
8:40 - Toolpicker per canvas
notesCanvas.drawingPolicy = .default notesToolPicker.showsDrawingPolicyControls = true notesToolPicker.selectedTool = PKInkingTool(.pen, color: .black, width: 2) drawingCanvas.drawingPolicy = .anyInput drawingToolPicker.showsDrawingPolicyControls = false drawingToolPicker.selectedTool = PKInkingTool(.marker, color: .purple, width: 20)
-