[ad_1]
The app to breed the issue is easy. It has 2 TextField. The button is simply there to print out the worth however the issue occurs with out it too. Run the app within the simulator, choose the primary textual content discipline, enter Bb, choose the second textual content discipline, Bb turns into Vv within the first discipline. It occurs for me utilizing the {hardware} keyboard or the keyboard on within the emulator. If I exploit the {hardware} keyboard I get 2 messages about failing to fetch the gadget property, but when I exploit the emulator keyboard the one factor that’s displayed is my print. I entered Dd within the first discipline, pressed the button, Dd stays within the fiend and prints, then I press the second TextField the Dd adjustments to Did, press the button once more it prints Did. I took the preview out and nonetheless no pleasure. I received this by constructing a brand new app, changing the hiya world with the 2 TextField, the button, and the two @state variables. It’d depend upon having the identical 2 characters within the TextField Bb turns into Vv however Do stays as Do. I strive stuff by ending the app and beginning it over. In case you enter Dd it adjustments to Did after which for those who return to the primary discipline and enter Dd once more it stays. I rebooted the system. It is enjoyable to attempt to guess what it can change to, Tt turns into Ty and Oo turns into Okay. In case you use the {hardware} keyboard and press a key earlier than choosing the sphere you get the 2 error messages, then choose the sphere and enter Dd and also you get no extra messages. OK, let’s make it a bit stranger, I ran my checks emulating an iPhone12 however after I change the emulator to a iPad Professional 9.7 inch Dd turns into did, decrease case d on the pad and higher on the telephone. the iPad Air additionally goes to did. Right here is the code
import SwiftUI
struct ContentView: View {
@State personal var nameX = ""
@State personal var displayName = ""
var physique: some View {
VStack{
TextField("Participant Title", textual content: $nameX)
TextField("Participant Show Title", textual content: $displayName)
Button ("save") {
print (nameX)
}
}
}
}
[ad_2]
