PKStrokePath to CoreGraphics path

Hey guys,

Is there a native bridge between a PKStrokePath and other path objects like CGPath, UIBezierPath or even SwiftUI Path ?
Answered by Frameworks Engineer in 614865022
There isn't a 1:1 bridge to UIBezierPath. One could be constructed from PKStrokePath's interpolated points. For details watch Inspect, modify, and construct PencilKit drawings.

Please use Feedback Assistant for any enhancement requests.
Accepted Answer
There isn't a 1:1 bridge to UIBezierPath. One could be constructed from PKStrokePath's interpolated points. For details watch Inspect, modify, and construct PencilKit drawings.

Please use Feedback Assistant for any enhancement requests.

Did you found any solution ?

PKStrokePath to CoreGraphics path
 
 
Q