SwiftUI Preview crashes on simple code

Entering the following simple code, in a default SwiftUI iOS project, causes the preview to consistently crash:

struct ContentView: View {
    var body: some View {
        VStack {
            Text("Hello, world!")
            padding()
            Text("Another Line")
        }
    }
}

I know "padding()" should be "spacer()", but this simple syntax error should just show an error, not crash the preview

"padding()" should be ".padding()"

As in:

struct ContentView: View {
var body: some View {
VStack {
Text("Hello, world!")
.padding()
Text("Another Line")
}
}
}

"padding()" is an instance method, so calling it without the leading ".", as you do, probably causes something horrible to happen, which causes the crash.
(Since it will return a function, not a View)

SwiftUI Preview crashes on simple code
 
 
Q