In a large project that I am working on, SwiftUI Previews do not work. (Xcode 13.4, iOS 15)
You can make the simplest of SwiftUI files - like:
import SwiftUI
struct TestView: View {
var body: some View {
Text("Hello, World!")
}
}
struct TestView_Previews: PreviewProvider {
static var previews: some View {
TestView()
}
}
And the Canvas will only show:
"Automatic preview updating pauses when the previewed file is edited in a way that causes the containing module to be rebuilt."
I've tried Resume
, Refresh Canvas
, Deleting Derived Data
- but we just can't seem to get it to work.
Any ideas? Thanks in advance, Scott