The following code opens the app settings, including preferred language.
func openSettings() {
guard let settingsUrl = URL(string: UIApplication.openSettingsURLString) else {
return
}
if UIApplication.shared.canOpenURL(settingsUrl) {
UIApplication.shared.open(settingsUrl, completionHandler: nil)
}
}
That works well in iOS (14.6 or 15.2), on iPadOS 14.4 ( both device and simulator)
But on iPadOS 15.2 simulator, the preferred language setting for the app does not show.
I noticed this in 2 different apps.
I made some tests on iPadOS 15.2 simulator.
- With iPad language set to French,
- I did not see the app language setting option.
- I switched iPad language to english
- then I got the app language setting option.
- Switched back iPad to French
- And now I see the app language setting option.
Bizarre, may be it was just some initialisation issue of the simulator ?
So, I'll close the thread.