Skip to content

Latest commit

 

History

History
54 lines (40 loc) · 2.43 KB

10107.md

File metadata and controls

54 lines (40 loc) · 2.43 KB
contributors
zntfdr

New fatures

  • Rich-selection experience:

    • Double-tap to select a word
    • Double-tap again to select a line
    • Grab selection handles to expand your selection
  • Enhanced tap-and-pan gesture: you can make noncontiguous selections by brushing over specific strokes

  • Add space between scribbles/notes:

    • Tap on the space between two lines
    • Tap Insert Space from the callout bar
    • Use the grab handle to adjust the amount of space
  • New color picker:

    • Saved colors
    • Eye dropper
  • Catalyst support

Pencil vs hand drawing

  • New (iOS 14 only) system settings for users to choose if they would like to draw only with the pencil or with fingers as well.

  • All apps need to respect that, if you have your own drawing engine, check UIPencilInteraction.prefersPencilOnlyDrawing

  • This can also be toggled directly on the tool picker:

  • PKCanvasView has been updated to reflect this preference with the new drawingPolicy, these are the possible values/behaviors:

    • anyInput: allows drawing on the canvas from any input source
    • pencilOnly: pencil touches are the only input that draw on the canvas
    • default:
      • if the tool picker is displayed, it follows UIPencilInteraction.prefersPencilOnlyDrawing
      • if the tool picker is hidden, it's the same as pencilOnly
  • If you'd like to hide the Draw with Finger option in the tool picker (for example when your app is a pencil-only app) set the PKToolPicker.showsDrawingPolicyControls to false.

  • You can also create your own PKToolPicker instances:

    • Need to be retained by your app
    • Each toolpicker can be used with different states with different canvases

Strokes Access