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 ...
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...
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...
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...
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 ...
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 ...
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...
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...
1
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...
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...
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?
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...
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.