I am the developer of Pencil it in, also an indie and pretty worried about this. I haven't downloaded Xcode 14 yet so I can't test, but I have a feeling the issue is in the backing CAMetalLayer, since it only happens when writing, possibly related to drawableSize. If you have Xcode 14, it might be worth building and logging the drawableSize or other CAMetalLayer properties (bounds, frame, ...) between iOS 15/16. Getting a reference to the metal layer can be a bit tricky; it's within a private view. The hierarchy is PKCanvasView -> PKTiledView -> PKMetalView. You can access it with something like:
for v in canvasView.getAllSubviews() {
for l in v.layer.sublayers ?? [] {
if let metalLayer = l as? CAMetalLayer {
print("Layer is ", metalLayer)
}
}
}
Where the helper function getAllSubviews() can be found on Stack Overflow
I will keep this forum updated on any progress made and would appreciate anyone else experiencing this do the same.