How to Quickly update SwiftUI Preview in Xcode
If you spend any time creating an app in SwiftUI and Xcode, then you probably use the previews pane a lot.
You also probably know that when you tap the arrow to refresh the preview, that it will give you the latest output of the layout of the app. What if there was a faster way to get the latest preview inside the preview pane? There IS.
Here's how:
- Press the key combination: {Command} + {Option} + {P}.
- That's it.
The SwiftUI Preview Pane will refresh.