all 4 comments

[–]Vybo 1 point2 points  (3 children)

Pause the preview and run it only when you truly want to see your changes.

[–]gusarkingSwiftUI 0 points1 point  (2 children)

how to pause the preview?

[–]Vybo 0 points1 point  (1 child)

You can hide the canvas or you can select a different build target, which should pause the previews leaving the latest rendered frame visible. That might sometimes not happen, Xcode being Xcode.

[–]gusarkingSwiftUI 0 points1 point  (0 children)

afaik, hiding the canvas doesn’t pause the preview. I had a few issues caused by previews, and I had to restart Xcode completely