Post

Replies

Boosts

Views

Created

Bundle preferred languages mechanism
Hi there, I’m curious to understand how the system determines which language to use for an app. The system is currently set to en-IN (English - India). My app supports the following languages: en (the default development language) en-GB (United Kingdom) en-IE (Ireland) en-US (United States) When I run the app, the Bundle.main.preferredLanguages returns [„en-GB“, „en“], which causes the app to be set to en-GB. However, when the app doesn’t support the preferred system language, I would expect it to default to the en language. Surprisingly, this is not the case. This behavior is precisely described in Technical Note TN2418. Unfortunately, there’s no explanation provided. Is this behavior related to the CLDR Linguistic Distance? I also attempted to replace the default development language en with en-001 (English - world), but it had no effect.
3
0
199
1w
Bundle preferred languages mechanism
Hi there, I’m curious to understand how the system determines which language to use for an app. The system is currently set to en-IN (English - India). My app supports the following languages: en (the default development language) en-GB (United Kingdom) en-IE (Ireland) en-US (United States) When I run the app, the Bundle.main.preferredLanguages returns [„en-GB“, „en“], which causes the app to be set to en-GB. However, when the app doesn’t support the preferred system language, I would expect it to default to the en language. Surprisingly, this is not the case. This behavior is precisely described in Technical Note TN2418. Unfortunately, there’s no explanation provided. Is this behavior related to the CLDR Linguistic Distance? I also attempted to replace the default development language en with en-001 (English - world), but it had no effect.
Replies
3
Boosts
0
Views
199
Activity
1w
Canvas does not show view bounds
I would like to show view bounds in the canvas in SwiftUI view preview, But it doesn't matter if the Editor -> Canvas -> Show View Bounds option is checked: Is this a known bug or what I'm doing wrong? 🙂 I'm using Xcode 14.2 (14C18).
Replies
4
Boosts
0
Views
2.4k
Activity
Feb ’23
Downgrade watchOS 9 beta
Is it possible to downgrade the watchOS 9 beta? I found that an Apple Store visit can archive it but that's not possible for everyone.
Replies
2
Boosts
0
Views
1.4k
Activity
Jun ’22
Adding Swift packages into project with Xcode 13
I'm not able to add Swift packages into the project anymore with Xcode 13. I tried to add Alamofire by searching its URL but I always got the error bellow. I tried to add my GitHub account into Xcode too but the result is similar.
Replies
3
Boosts
0
Views
1.6k
Activity
Oct ’21