PencilKit's delegate method being called when used .popover style

Hello, I have a issue that's PKCanvasView's delegate method (canvasViewDrawingDidChange) is automatically called when the view present with .popover setting. In my case, I want to show some popup view on PKCanvasView and that's happening.

viewController.modalPresentationStyle = .popover

When I comment out this line the delegate method not getting called and everything is fine.

The biggest problem was all previous ink on PKCanvas deleted somehow if this delegate being called automatically. Is this PencilKit bugs?

Note: this trigger only with Apple Pencil, finger touch is fine.

Replies

Finally, I got it. It is just hitTest problem. Not related with PencilKit.