Okay, so I need to detect what keyboard layout is used in my TextField, whether its QWERTY, QWERTZ Nordic or AZERTY I saw this post and thought about using textField.textInputMode but I'm not sure how I'm supposed to do that.
Asked
Active
Viewed 153 times
0
-
1just try to print this in init() ```UITextField().textInputMode?.value(forKey: "identifierWithLayouts")``` – Raja Kishan Sep 27 '22 at 14:59
-
I'm using swiftui tho, where do I write this line? in onAppear of my textfield? – dor sahar Sep 27 '22 at 15:17
-
1you can either write in onAppear or init of your struct. – Raja Kishan Sep 27 '22 at 15:28
-
Yeah that just returns nil – dor sahar Sep 27 '22 at 15:31