You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are currently working on adding accessibility to our app and support for Apple VoiceOver. The display language of our app might differ from the user's system language. For example, the user might have configured their iPhone to display system UI in English, however, our app UI content in German. We've noticed that in this case VoiceOver pronounces our German labels as if they represent English words which is expected behavior:
If you don't set a language, the system uses the user’s current language setting.
I have tried to do the same in a MAUI app but I did not find such a property:
It looks like the API is missing from the Xamari iOS bindings? One thing I noticed is that for .NET for iOS, the AccessibilityLanguage API is defined first for an UIView: https://learn.microsoft.com/en-us/dotnet/api/uikit.uiview.accessibilitylanguage?view=xamarin-ios-sdk-12
Whereas in UIKit, that API is defined for a NSObject. UIApplication is a NSObject but not a UIView which technically explains why that property is missing here.
Steps to Reproduce
n/a
Did you find any workaround?
No feasible workaround yet.
Relevant log output
No response
The text was updated successfully, but these errors were encountered:
UIAccessibility is a category on NSObject, with a comment saying
"UIAccessibility is implemented on all standard UIKit views and controls".
We can't create a single binding that exposes UIAccessibility as that comment
states, and adding it to NSObject will create a lot of noise for all other
types.
So a long time ago we decided to only add UIAccessibility to a few UIKit types
(UIView, UIBarItem and UIImage), but it seems UIApplication should have it
too, so do that.
Fixes#21925.
Apple platform
iOS
Framework version
net8.0-*
Affected platform version
.NET 8.0.303
Description
We are currently working on adding accessibility to our app and support for Apple VoiceOver. The display language of our app might differ from the user's system language. For example, the user might have configured their iPhone to display system UI in English, however, our app UI content in German. We've noticed that in this case VoiceOver pronounces our German labels as if they represent English words which is expected behavior:
(https://developer.apple.com/documentation/objectivec/nsobject/1615192-accessibilitylanguage?language=objc#discussion)
It is possible to configure the language used when speaking the label/accessibility description/etc... using the API
(https://developer.apple.com/documentation/objectivec/nsobject/1615192-accessibilitylanguage?language=objc)
While this property can bet set on every UIView it looks like it is also possible to set it globally using the UIApplication instance:
(https://stackoverflow.com/questions/21283862/uiaccessibility-default-language-throughout-the-app)
I have tried to do the same in a MAUI app but I did not find such a property:

It looks like the API is missing from the Xamari iOS bindings? One thing I noticed is that for .NET for iOS, the AccessibilityLanguage API is defined first for an UIView:
https://learn.microsoft.com/en-us/dotnet/api/uikit.uiview.accessibilitylanguage?view=xamarin-ios-sdk-12
Whereas in UIKit, that API is defined for a NSObject. UIApplication is a NSObject but not a UIView which technically explains why that property is missing here.
Steps to Reproduce
n/a
Did you find any workaround?
No feasible workaround yet.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: