Questions tagged [pencilkit]

PencilKit is Apple's framework for capturing touch input as an opaque drawing and displaying that content from your app.

PencilKit is Apple's framework for capturing touch input as an opaque drawing and displaying that content from your app.

Apple first revealed PencilKit at WWDC on June 3, 2019, and made it available in the first beta release of Xcode 11.

PencilKit is part of the following SDKs:

  • iOS 13.0 and later,
  • macOS 10.15 and later,
  • Mac Catalyst 13.0 and later.
140 questions
0
votes
2 answers

Convert drawing to an Image with PencilKit in SwiftUI

I have this simple View in SwiftUI and have implemented PencilKit for the signing of a user. My question is, how can I create an image from the drawing of the user. import SwiftUI import PencilKit struct ContentView : View { var body: some…
I-O-ES
  • 21
  • 3
0
votes
0 answers

Displaying small Thumbnails/Mirrors of multiple UIViews in UIScrollView

I have an UIScrollView that contains multiple Views (like 20 views). Each of these views has an Image with background color, a view that contains multiple shapes (CAShapeLayer with pathes) and a PKCanvasView (from iOS 13 PencilKit). It is basically…
-1
votes
1 answer

Unable to set PKInk color to black

For some reasons I am unable to set PKInk color to black. It works with yellow, red, blue, …but black is just ignored and I get the stroke in white when getting image from drawing. This is really weird and I don’t know why. I tried by setting black…
thierryb
  • 3,660
  • 4
  • 42
  • 58
-1
votes
1 answer

.drawing extension file for Xcode project for PencilKit?

How can I make my own .drawing file to import it in Xcode to get drawing from this file and assign to PKDrawing and then draw it in PKCanvas view? I've explored WWDC2020 PencilKit demo project where they are also using .drawing file of lowercased…
-1
votes
2 answers

Apple's PencilKit Demo not able to deploy to iPad

I want to install the demo code of Apple's PencilKit and run it on my iPad: https://developer.apple.com/documentation/pencilkit/drawing_with_pencilkit I use: xcode 11.0 iPad Pro with 13.1 I can deploy it to the iOS simulators but not to the iPad.…
simibac
  • 7,672
  • 3
  • 36
  • 48
1 2 3
9
10