Post

Replies

Boosts

Views

Activity

Reply to Horizontal scroll below tab bar
Same question here. I show a table/spreadsheet in landscape mode and I don’t know whether the overlap with vertical tab bar is deliberate and should be left like that or whether I should adjust the scroll area.
Topic: SwiftUI SubTopic:
iPhone Duo SwiftUI Q&A
Sep ’26
Reply to iCloud Sync not working with iPhone, works fine for Mac.
Wish I'd reported this weeks ago when my iPad showed this symptom on the iOS beta, but I'd assumed it was due to me using a sandbox user since Apple was so bullish in their WWDC 2023 video about the number of test cases they'd created for CkSyncEngine. I'd also created a feedback before discovering this thread (FB22344526) Easy to reproduce - the Apple sample app fails. Hoping it gets taken seriously.
Topic: App & System Services SubTopic: iCloud Tags:
Mar ’26
Reply to Force a locale from string catalog
Many thanks Apple Engineer, func localizedString( is exactly what I needed and the fog is clearing :) Reminder to myself: func localizedString(_ resource: LocalizedStringResource, _ myLocale: String) -> String { var locale: Locale { Locale(identifier: myLocale) } var resource = resource resource.locale = locale return String(localized: resource) }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’25
Reply to Force a locale from string catalog
LocalizedStringResource didn't seem to work. The .environment modifier may work on Views but not on the content of the view ( strings in the view used to build the shared content) However, the localizedString method suggested by AI did work despite looking messy. A shame there's not a simpler solution. @State var isOtherLanguage = false var body: some View { var myLocale: String { isOtherLanguage ? "de" : "en" } VStack { Toggle("Switch language", isOn: $isOtherLanguage).frame(maxWidth: 200) HStack { Text("❌\(myLocale): ") Text( LocalizedStringResource( "Hello world!", table: "Localizable", locale: Locale(identifier: myLocale) ) ) } HStack { Text("❌\(myLocale): ") Text( String( localized: "Hello world!", locale: (Locale(identifier: myLocale)), comment: "To share" ) ) .environment(\.locale, Locale(identifier: myLocale)) } HStack { Text("❌\(myLocale): ") Text(localizedString) } HStack { Text("✅\(myLocale): ") Text("Hello world!") .environment(\.locale, Locale(identifier: myLocale)) } HStack { Text("✅\(myLocale): ") Text(localizedString("Hello world!", locale: myLocale)) } } } func localizedString(_ key: String.LocalizationValue, locale: String) -> String { guard let path = Bundle.main.path(forResource: locale, ofType: "lproj"), let bundle = Bundle(path: path) else { return String(localized: key) } return String(localized: key, bundle: bundle) }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’25
Reply to How to create a second target for an app with a linked App Clip?
Here's how to fix it... In the target for the Test Flight App in the general tab you'll find a framework, library, clips section and this contains the reference to the clip ( a relic of copying the original production target.) This must be deleted. However, you cannot delete it here (if you try, you'll get warning popups etc but the deletion fails. ) Instead, navigate to the Build Phases tab and scroll down to the Embed App Clips section and here you can delete it. Warning: Make sure you do this in the test flight target not the production target.
Feb ’25
Reply to Vertical tab bar in landscape mode iOS26
It seems strange that iPhone Duo, using the iPhone idiom, adopts a vertical tab bar, but all other iPhones do not (in landscape mode) and CANNOT. Also strange that all Apple material describing preparing for the duo recommend iPad testing, not iPhone.
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
4w
Reply to Horizontal scroll below tab bar
Same question here. I show a table/spreadsheet in landscape mode and I don’t know whether the overlap with vertical tab bar is deliberate and should be left like that or whether I should adjust the scroll area.
Topic: SwiftUI SubTopic:
iPhone Duo SwiftUI Q&A
Replies
Boosts
Views
Activity
Sep ’26
Reply to iCloud Sync not working with iPhone, works fine for Mac.
I’d like a robust dev environment for this. I’m not confident cksyncengine works for sandbox users. I’m not confident cksyncengine works in Xcode simulators I’m not confident cksyncengine works in development as opposed to production iCloud. Without this confidence it’s difficult to set-up, difficult to test and difficult reporting bugs.
Topic: App & System Services SubTopic: iCloud Tags:
Replies
Boosts
Views
Activity
Mar ’26
Reply to iCloud Sync not working with iPhone, works fine for Mac.
Wish I'd reported this weeks ago when my iPad showed this symptom on the iOS beta, but I'd assumed it was due to me using a sandbox user since Apple was so bullish in their WWDC 2023 video about the number of test cases they'd created for CkSyncEngine. I'd also created a feedback before discovering this thread (FB22344526) Easy to reproduce - the Apple sample app fails. Hoping it gets taken seriously.
Topic: App & System Services SubTopic: iCloud Tags:
Replies
Boosts
Views
Activity
Mar ’26
Reply to Force a locale from string catalog
Many thanks Apple Engineer, func localizedString( is exactly what I needed and the fog is clearing :) Reminder to myself: func localizedString(_ resource: LocalizedStringResource, _ myLocale: String) -> String { var locale: Locale { Locale(identifier: myLocale) } var resource = resource resource.locale = locale return String(localized: resource) }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’25
Reply to Force a locale from string catalog
LocalizedStringResource didn't seem to work. The .environment modifier may work on Views but not on the content of the view ( strings in the view used to build the shared content) However, the localizedString method suggested by AI did work despite looking messy. A shame there's not a simpler solution. @State var isOtherLanguage = false var body: some View { var myLocale: String { isOtherLanguage ? "de" : "en" } VStack { Toggle("Switch language", isOn: $isOtherLanguage).frame(maxWidth: 200) HStack { Text("❌\(myLocale): ") Text( LocalizedStringResource( "Hello world!", table: "Localizable", locale: Locale(identifier: myLocale) ) ) } HStack { Text("❌\(myLocale): ") Text( String( localized: "Hello world!", locale: (Locale(identifier: myLocale)), comment: "To share" ) ) .environment(\.locale, Locale(identifier: myLocale)) } HStack { Text("❌\(myLocale): ") Text(localizedString) } HStack { Text("✅\(myLocale): ") Text("Hello world!") .environment(\.locale, Locale(identifier: myLocale)) } HStack { Text("✅\(myLocale): ") Text(localizedString("Hello world!", locale: myLocale)) } } } func localizedString(_ key: String.LocalizationValue, locale: String) -> String { guard let path = Bundle.main.path(forResource: locale, ofType: "lproj"), let bundle = Bundle(path: path) else { return String(localized: key) } return String(localized: key, bundle: bundle) }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’25
Reply to What's the trick for copying a file to a simulator session?
Additional information.... Even if I use safari to download the file from google drive or icloud it fails with no message at all. I suspect it's either an authorisation problem (can't determine how to authorize safari to access the simulation files) or a missing directory (i.e. simulator is trying to download to a non-existent directory).
Replies
Boosts
Views
Activity
Jun ’25
Reply to How to create a second target for an app with a linked App Clip?
Here's how to fix it... In the target for the Test Flight App in the general tab you'll find a framework, library, clips section and this contains the reference to the clip ( a relic of copying the original production target.) This must be deleted. However, you cannot delete it here (if you try, you'll get warning popups etc but the deletion fails. ) Instead, navigate to the Build Phases tab and scroll down to the Embed App Clips section and here you can delete it. Warning: Make sure you do this in the test flight target not the production target.
Replies
Boosts
Views
Activity
Feb ’25