Is there a keyboard-shortcut to click the resume button in the canvas on Xcode Previews, instead of clicking it every time?
If you make significant code changes, Xcode pauses the preview. You can resume the preview by clicking the Resume button in the top right or by pressing Command + Option + P.
Answer: A: If by Xcode preview you mean the SwiftUI preview, there's a tiny button above the source code editor with a bunch of horizontal lines. Click that button and select Canvas to hide the SwiftUI preview.
Editor menu > Canvas > Refresh Canvas This will refresh your preview and start the automatic update again. Press command + option + p keys to trigger refresh canvas.
[Command]+[Option]+[P]
is what you're looking for.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With