Post

Replies

Boosts

Views

Activity

Reply to Cannot preview SwiftUI
What worked for me is I went to file inspector in the utilities area on the right hand side of the xcode editor. One of the files was there with a .swift extension. Type: Default - Swift Source. Changing the location is what worked for me. I changed it from "Relative to Group" to "Relative to Project" and the preview came up!
Mar ’20