import SwiftUI struct ContentView: View { @State private var value: String = "" var body: some View { VStack(alignment: .leading) { Text("The TextField causes the fault message in the debug console.") Text("Entering text in the text field works.") TextField("Enter text", text: $value) } .padding() } } #Preview { ContentView() }