Post

Replies

Boosts

Views

Activity

Reply to How to import photos into Device Hub photos app (beta 3)
Hello, I tried to use the following command xcrun simctl addmedia booted /Users/axel/Dropbox\ \(Maestral\)/Developer/Skipper/App/Resources/GPX/test.gpx And I got this error Failed to import '/Users/axel/Dropbox (Maestral)/Developer/Skipper/App/Resources/GPX/test.gpx', error [NSPOSIXErrorDomain] 22: The operation couldn’t be completed. File type unsupported. An error was encountered processing the command (domain=com.apple.CoreSimulator.LaunchdSimError, code=133): Multiple errors were returned; see stderr Regards, Axel
Aug ’26
Reply to How to get the correct animation when inserting/removing a row in a SwiftUI List from a swipeAction?
Additional informations: It's working fine with SwiftUI on iOS 17 and iOS 18. It's working fine with an equivalent UIKit code on iOS 26 and iOS 27. In my opinion, it's very likely to be a SwiftUI regression. I updated the feedback FB23661327 with these informations. I would love an Apple engineer to have a look at it and fix the issue before iOS 27 ships. Axel
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jul ’26
Reply to Shortcuts and App Intents does not work on simulators running iOS 26 or iOS 27
Hello, I took the time to check, it's actually not working starting iOS 26.4. For simulators running previous iOS 26 versions (like 26.3), the app shortcuts can be run and the app intents too. iOS 18.6: ✅ iOS 26.3.1: ✅ iOS 26.4.1: ✅ Shortcuts & intents correctly run but only one suggestion is used to create the shortcuts❌ iOS 26.5: ❌ No shortcuts created. Not possible to run shortcuts or intents. iOS 27: ❌ Same as 26.5. I added the information in the feedback. See this screenshot. Regards, Axel
Jun ’26
Reply to SwiftData predicate filtered by enum case
I just tested using an Enum in a SwiftData Query Predicate only works for anyAppleOS 27 & doesn't back deploy when building on Xcode 27 🫤 On anyAppleOS 26 & below, Xcode logs "Query encountered an error: Unsupported Predicate: Captured/constant values of type 'TheEnum' are not supported" @Frameworks Engineer do you think there is any chance to back deploy that to prior OS versions? Thank you.
Topic: SwiftData SubTopic:
SwiftData Q&A
Jun ’26
Reply to Aggregate functions in SwiftData
Hello @Frameworks Engineer @cgontijo, I filed feedback for that in January 2024. Basically, the equivalent to NSExpression functions like sum/average/max/median. https://developer.apple.com/documentation/foundation/nsexpression/1413747-expressionforfunction FB13522377 FB13522406 FB13521724 FB13522412 FB13522411 FB13522401 FB13522382 Feel free to check them. It's blocking me from adopting SwiftData because I can't do any operation on my data set as I have to fetch all objects into memory with SwiftData. Regards, Axel
Topic: SwiftData SubTopic:
SwiftData Q&A
Jun ’26
Reply to How to present a View above everything in SwiftUI?
Hello @DTS Engineer, Thank you for answering. I'll try to explain a little bit more the end result I want. Basically, something like what Apple uses for the "Silent Mode" floating pill/indicator at the top of the screen. Something I could use in my app to indicate success/errors/confirmations when some actions are performed by the user. Let say an action is performed in the SheetContentView, I want to immediately present the indicator while also dismissing the sheet. I dismiss the sheet I want the PillNotificationView to stay visible, on top of everything. So it can't be an overlay/ZStack to the SheetContentView, and it can't be an overlay/ZStack to the MyView. Regarding the code (this does not work as explained above because the PillNotificationView is overlaid to the MyView due to the ZStack) ZStack { MyView() if isPillPresented { PillNotificationView() } } .sheet(isPresented: $isPresentingSheet) { SheetContentView() } I want the view to be presented only once either above everything (no matter if the top view is the SheetContentView or MyView). I hope it makes it more clear. Let me know. Axel PS: This UI: https://github.com/ivanvorobei/SPIndicator an old blog post talking about something similar is https://www.fivestars.blog/articles/swiftui-hud/
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jun ’26
Reply to StoreKit 2: is there a way for an app to be informed in real time if an auto-renewable subscription is cancelled by the user?
Hello, I think it's expected that Transaction.updates is not called (because when a user cancels its subscription, there is actually no new transaction to be pushed to the devices) but I expect Product.SubscriptionInfo.Status.updates to be called (also when a user changes plan from monthly to yearly for example, so we can be informed about the renewal product). This Status.update async sequence is called when I test with Xcode testing (with a configuration file). But this behaviour seems to be different in the Sandbox environment (or it's very very slow to update?). Before publishing the app, I want to be sure my flow is working but having two different behaviours between the Sandbox and the Xcode testing is not helping. Thank you, Axel
Topic: App & System Services SubTopic: StoreKit Tags:
Feb ’26
Reply to How can I remove a localization from a String Catalog in a Swift Package?
Hello, The solution I came up to was: Close Xcode. Remove the hidden folder .swiftpm from the Package folder. I noticed the UserInterfaceState.xcuserstate file in a subfolder of this folder contained some references to the languages (I could find language codes in it like "pt-PT"). Open the package again with Xcode. The languages that weren't translated at all (0% progress) got removed from the string catalog. The other languages where at least one string was translated stayed in the string catalog. I don't think this is ideal but I hope it can help others. Axel
Oct ’25
Reply to How to import photos into Device Hub photos app (beta 3)
Hello, I tried to use the following command xcrun simctl addmedia booted /Users/axel/Dropbox\ \(Maestral\)/Developer/Skipper/App/Resources/GPX/test.gpx And I got this error Failed to import '/Users/axel/Dropbox (Maestral)/Developer/Skipper/App/Resources/GPX/test.gpx', error [NSPOSIXErrorDomain] 22: The operation couldn’t be completed. File type unsupported. An error was encountered processing the command (domain=com.apple.CoreSimulator.LaunchdSimError, code=133): Multiple errors were returned; see stderr Regards, Axel
Replies
Boosts
Views
Activity
Aug ’26
Reply to How to get the correct animation when inserting/removing a row in a SwiftUI List from a swipeAction?
Additional informations: It's working fine with SwiftUI on iOS 17 and iOS 18. It's working fine with an equivalent UIKit code on iOS 26 and iOS 27. In my opinion, it's very likely to be a SwiftUI regression. I updated the feedback FB23661327 with these informations. I would love an Apple engineer to have a look at it and fix the issue before iOS 27 ships. Axel
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’26
Reply to Shortcuts and App Intents does not work on simulators running iOS 26 or iOS 27
Hello, I took the time to check, it's actually not working starting iOS 26.4. For simulators running previous iOS 26 versions (like 26.3), the app shortcuts can be run and the app intents too. iOS 18.6: ✅ iOS 26.3.1: ✅ iOS 26.4.1: ✅ Shortcuts & intents correctly run but only one suggestion is used to create the shortcuts❌ iOS 26.5: ❌ No shortcuts created. Not possible to run shortcuts or intents. iOS 27: ❌ Same as 26.5. I added the information in the feedback. See this screenshot. Regards, Axel
Replies
Boosts
Views
Activity
Jun ’26
Reply to SwiftData predicate filtered by enum case
I just tested using an Enum in a SwiftData Query Predicate only works for anyAppleOS 27 & doesn't back deploy when building on Xcode 27 🫤 On anyAppleOS 26 & below, Xcode logs "Query encountered an error: Unsupported Predicate: Captured/constant values of type 'TheEnum' are not supported" @Frameworks Engineer do you think there is any chance to back deploy that to prior OS versions? Thank you.
Topic: SwiftData SubTopic:
SwiftData Q&A
Replies
Boosts
Views
Activity
Jun ’26
Reply to Aggregate functions in SwiftData
Hello @Frameworks Engineer @cgontijo, I filed feedback for that in January 2024. Basically, the equivalent to NSExpression functions like sum/average/max/median. https://developer.apple.com/documentation/foundation/nsexpression/1413747-expressionforfunction FB13522377 FB13522406 FB13521724 FB13522412 FB13522411 FB13522401 FB13522382 Feel free to check them. It's blocking me from adopting SwiftData because I can't do any operation on my data set as I have to fetch all objects into memory with SwiftData. Regards, Axel
Topic: SwiftData SubTopic:
SwiftData Q&A
Replies
Boosts
Views
Activity
Jun ’26
Reply to How to present a View above everything in SwiftUI?
Hello @DTS Engineer, Thank you for answering. I'll try to explain a little bit more the end result I want. Basically, something like what Apple uses for the "Silent Mode" floating pill/indicator at the top of the screen. Something I could use in my app to indicate success/errors/confirmations when some actions are performed by the user. Let say an action is performed in the SheetContentView, I want to immediately present the indicator while also dismissing the sheet. I dismiss the sheet I want the PillNotificationView to stay visible, on top of everything. So it can't be an overlay/ZStack to the SheetContentView, and it can't be an overlay/ZStack to the MyView. Regarding the code (this does not work as explained above because the PillNotificationView is overlaid to the MyView due to the ZStack) ZStack { MyView() if isPillPresented { PillNotificationView() } } .sheet(isPresented: $isPresentingSheet) { SheetContentView() } I want the view to be presented only once either above everything (no matter if the top view is the SheetContentView or MyView). I hope it makes it more clear. Let me know. Axel PS: This UI: https://github.com/ivanvorobei/SPIndicator an old blog post talking about something similar is https://www.fivestars.blog/articles/swiftui-hud/
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’26
Reply to StoreKit 2: is there a way for an app to be informed in real time if an auto-renewable subscription is cancelled by the user?
Hello, I think it's expected that Transaction.updates is not called (because when a user cancels its subscription, there is actually no new transaction to be pushed to the devices) but I expect Product.SubscriptionInfo.Status.updates to be called (also when a user changes plan from monthly to yearly for example, so we can be informed about the renewal product). This Status.update async sequence is called when I test with Xcode testing (with a configuration file). But this behaviour seems to be different in the Sandbox environment (or it's very very slow to update?). Before publishing the app, I want to be sure my flow is working but having two different behaviours between the Sandbox and the Xcode testing is not helping. Thank you, Axel
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Feb ’26
Reply to How can I remove a localization from a String Catalog in a Swift Package?
Hello, The solution I came up to was: Close Xcode. Remove the hidden folder .swiftpm from the Package folder. I noticed the UserInterfaceState.xcuserstate file in a subfolder of this folder contained some references to the languages (I could find language codes in it like "pt-PT"). Open the package again with Xcode. The languages that weren't translated at all (0% progress) got removed from the string catalog. The other languages where at least one string was translated stayed in the string catalog. I don't think this is ideal but I hope it can help others. Axel
Replies
Boosts
Views
Activity
Oct ’25