My app language is set to French.
If my device language is set to French, I do not see this issue.
If my device language is set to English, In the app, voice over reads all UIKit views with female voice (French accent), and all SwiftUI view with male voice (French accent).
Is this a bug with SwiftUI or UIKit ?
I would expect the gender voice should not be changed irrespective of UIKit/SwiftUI views. I tried many ways, but none fixed the issues.
I am not sure what is causing this or how to fix this. Our app is majorly built in UIKit and we started to use SwiftUI views for small views, and if this accessibility issues continue, we would like to stop using SwiftUI.
Some of the ways I tried are:
Set the locale of swiftUI view
.environment(\.locale, "fr-CA")
I could not find anything in the documentation that could address this.