It would be great to be able to build for Preview without having the SwiftUI Preview open. That way the preview will be ready without rebuilding when coming back to it. Any way to do that?
Steps to reproduce:
- go to another file (not a view) like a view model
- implement some logic and compile a few time during the implementation
- go back to the preview, compilation take a lot of time because it now compile for another target I guess
Solution: Add a shortcut in Product > Build For > Preview. That way I can compile for preview from anywhere easily.