Rotating device - Clears canvas?

Using PencilKit with SwiftUI, i notice that when the device is rotated, it clears the canvas. Is there a way to stop this?
Rotating device - Clears canvas?
 
 
Q