Post not yet marked as solved
Post marked as unsolved with 8 replies, 1,154 views
Hi.I am using "UITextInputMode" to fix the language mode.But "UITextInputMode" doesn't work on IOS13.1."UITextInputMode" works until "IOS13.0".Please tell me the workaround.Is this an OS-dependent bug? override var textInputMode: UITextInputMode? {
if toriTapp {
if let language = getKeyboardLanguage() {
toriTapp = false
for tim in UITextInputMode.activeInputModes {
if tim.primaryLanguage!.contains(language) {
return tim
}
}
}
return super.textInputMode
}
return super.textInputMode
}
private func getKeyboardLanguage() -> String? {
return "en"
}