Posts

Post not yet marked as solved
1 Replies
243 Views
I'm looking for an accessibility modifier (or some other method) in SwiftUI that does the same job as UIKit's accessibilityLanguage property: https://developer.apple.com/documentation/objectivec/nsobject/1615192-accessibilitylanguage We've got a few screens in our app for which the display language is server-dictated instead of device-dictated -- and without this property VoiceOver is reading Spanish with the English parser and accent when the device is set to English. Thanks for any information.
Posted
by Purseus.
Last updated
.
Post not yet marked as solved
2 Replies
650 Views
Does the default Swift string interpolation (example: "Orange count: (76341)") always output in the "en_US_POSIX" locale (or equivalent)? Or does it depend on the user's locale? For example, using a number formatter with a locale of "fa_IR" produces: "۷۶۳۴۱" (for 76341). I'm curious to know if there's any way a user's locale or language settings can affect the "default" string interpolation, since we use that often to set values in headers to web servers, and those have to be in English numbers. Can I safely use default string interpolation for that or should I use an explicit number formatter (with "en_US_POSIX") to be sure?
Posted
by Purseus.
Last updated
.