I have tried 4 methods above one by one.
Disabling "Connect Hardware Keyboard" seems only to affect the behavior of simulators, but not the canvas.
I switch to different simulators, including iPhone & iPad. But the problem is still there.
I add a brand new swiftui view and make it to be the simplest codes. But it is still no go.
struct TextFieldPopupView: View {
@State private var text = ""
var body: some View {
TextField("Hello", text: $text)
.textFieldStyle(RoundedBorderTextFieldStyle())
}
}
struct TextFieldPopupView_Previews: PreviewProvider {
static var previews: some View {
TextFieldPopupView()
}
}
Removing derived data and restarting has no effect yet.
Thank you all the same.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: