Stop auto compile on Xcode preview

Created
Active
Viewed 138 times
1 replies

You must be a Member of the collective to start a discussion.

-7

Wanting to know how to reload or recompile preview only when after I hit save. It's possible to do it on visual studio code. I'm new on Xcode. I'm open to receive any other recommendation for faster load because i'm using an old machine!

1 reply

Sorted by:
77486834
1

You can turn off the auto-compile feature for previews/canvas'. When having a SwiftUI View open in the editor go to the Editor -> Canvas -> Automatically Refresh Canvas.

When this option is turned off you can manual refresh using the button in the canvas or press the default shortcut option + cmd + P.