pencilkit Questions

1

I'm trying to integrate Apple Pencil with a WKWebView. Desired behavior: Using pencil allows you to draw on the webpage with all the fancy PencilKit integrations (PKToolPicker, etc) Using fingers ...
Turino asked 18/2, 2021 at 0:26

2

When in dark mode, it seems that all the color set in PKInkingTool are reversed in brightness. If I choose a bright red I got a dark red, and vice versa. For example, if I use UIColorPickerViewCont...
Cartelize asked 7/7, 2020 at 6:24

2

I'm trying to figure out how to modify the PKDrawing property from PKCanvasView to add some shapes like circles or at least add a line however PKDrawing is an opaque type so there is not too much t...
Sellers asked 21/10, 2019 at 15:28

1

Solved

I've watched this WWDC session as well as its sample project: https://developer.apple.com/documentation/pencilkit/inspecting_modifying_and_constructing_pencilkit_drawings However, when I try to plo...
Saxtuba asked 8/12, 2021 at 11:35

2

Solved

When drawing on screen using finger/pencil with the PencilKit API, I would like to set the width of strokes to be a constant. Currently, the width setting in say PKInkingTool only sets the baseline...
Collapse asked 27/8, 2020 at 17:7

2

Solved

Is there a way to convert UIBezierPath to PKStrokePath ? for example I have these path as UIBezierPath how can I convert it to PKStrokePath to use it in PKDrawing ? let shape = UIBezierPath() shape...
Verisimilitude asked 15/8, 2021 at 8:4

1

I am not getting any option to add text, shape and signature while markup a photo with PencelKit in my app. This option is available in Apple's Photos App. I have tried to access this with various ...
Dekko asked 27/2, 2020 at 11:3

0

If I draw for example with the Notes app I can see that there is a custom tool that can be used for handwriting. Now in my case I don't want to implement handwriting, but I need a custom tool that ...
Heartburn asked 26/4, 2021 at 12:51

0

I'm trying to layer a PKCanvasView on top of an image, which works fine with the initial layout but when the view is resized (by rotating the iPad) the PKDrawing within is not scaled which results ...
Nippur asked 25/4, 2021 at 7:25

0

Im currently making an app usig PencilKit and SwiftUI. If the screen is rotated, the canvas (and the drawing) should be rescaled acordingly. I do this with the Geometry reader and calculating the s...
Tereasaterebene asked 24/1, 2021 at 22:8

0

I'm trying to use ToolPicker on my canvas, but here what I have : and I want (button + and text, shapes...): How can I add Text, shapes to ToolPicker on my canvas ? struct MyCanvas: UIViewReprese...
Colyer asked 3/12, 2020 at 15:0

1

PKToolPicker in PencilKit (iOS 13+) comes with default tools that are pen, marker, pencil, eraser, lasso, ruler and color pickers on iOS. on iPadOS this is extended with undo/redo and a (...) menu ...
Lukey asked 22/7, 2020 at 16:39

1

Solved

Currently, I am able to have a separate PKCanvasView and a PKToolPicker that is shown when a button is tapped on. However, the tool is not being transferred between the picker and the canvas view. ...
Overmuch asked 23/9, 2020 at 0:33

1

I like to make PKCanvasView to be scrollable and zoomable with underlay image. It seems it is okay to make it scrollable and zoomable without underlaying background image. But to make it with under...
Irremovable asked 9/5, 2020 at 12:28

1

Solved

I am trying to PencilKit and but I cannot draw anything in the app. I set my code as below. import UIKit import PencilKit class DrawingViewController: UIViewController { var canvasView: PKCanva...
Coonhound asked 17/1, 2020 at 5:53

4

I'd like to be able to load a PNG file into a PKCanvasView to be able to draw on and erase parts of it. Is there a way to accomplish this?
Ptero asked 13/6, 2019 at 3:56

0

My app shows PDF files using the PDFKit and lets users make annotations on pdf files through my own code using UIKit and CoreGraphics frameworks. Since I would like to use the PencilKit framework t...
Somnifacient asked 16/1, 2020 at 0:31

0

How to setup PKToolPicker initial position? It always started at the bottom, and if there is a toolbar, cover up the toolbar. let toolPicker = PKToolPicker.shared(for: self.view.window!) toolPick...
Pelagianism asked 4/10, 2019 at 10:1
1

© 2022 - 2024 — McMap. All rights reserved.