Post

Replies

Boosts

Views

Activity

Comment on Disappearing AppIntents
This should be the accepted answer! Looking into the build logs (View > Navigators > Reports) helped a lot. For me it was an issue with the caseDisplayRepresentations that didn’t include all cases. Even after including all cases I still had to change from DisplayRepresentation(stringLiteral: ) to DisplayRepresentation(title: ). Maybe that helps.
Topic: Machine Learning & AI SubTopic: General Tags:
Aug ’23
Comment on Unable to set the new App Tint Color options for App Shortcuts
Okay, I’ve figured it out! Yes, you have to add CFBundleIconFiles and UIPrerenderedIcon as well. And no you don’t have to use both new keys. I’ve ended up only using NSAppIconComplementingColorNames for the background gradient now. Seems like you have to add both strings to this array, though. So if you want to have a flat color, just put the same name for the top and bottom color. Btw, here is a tweet showing how it can look like: https://twitter.com/emcro/status/1677437755197132801
Topic: App & System Services SubTopic: General Tags:
Aug ’23
Comment on Migrate Core Data to SwiftData in an App Group (& CloudKit)
Hey, thanks a lot for your detailed response! 🙏 Yes, the migration from Core Data to SwiftData itself works successfully for me. In my case I don’t want to keep the .sqlite name extension … it’s rather that the migration didn’t find the old Core Data for migration and simply created a new database. So how do I get the migration to 1) find my old „Something.sqlite“ Core Data database, 2) then move it to the App Group 3) so that I can then use it for my Widget and enable it for CloudKit?
Jun ’24
Comment on change my primary language of App store connect
Using Chrome worked for me as well as unfortunately Safari doesn’t seem to support this.
Replies
Boosts
Views
Activity
Aug ’21
Comment on WatchKit can't initiate viewcontroller from Storyboard
That should be accepted as answer. This fixed the issue for me as well. PS: You can also right-click the storyboard file, select Open As > Source Code and search and replace right inside of Xcode.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Dec ’21
Comment on Use of 64pt and 68pt iOS App Icon Sizes
Yep, have seen that on my hunt to get some information somewhere 😉
Replies
Boosts
Views
Activity
Jun ’23
Comment on Error saving @Model with enum
I don’t get the error, but I have the same issue – the enum won’t be persisted! Filed a feedback as well (FB12362116).
Replies
Boosts
Views
Activity
Jun ’23
Comment on Modeling complex value type in SwiftData
Good to know the enum has to conform to Codable! Nevertheless this isn’t working for me – the enum won’t be persisted when changing in the app.
Replies
Boosts
Views
Activity
Jun ’23
Comment on Xcode 15 beta 5 missing cascade property option in @Relationship(.cascade) error.
I had the same issue with Xcode 15 beta 6 and adding the deleteRule: before .cascade + removing the default value fixed it. This should be the accepted answer!
Replies
Boosts
Views
Activity
Aug ’23
Comment on Disappearing AppIntents
This should be the accepted answer! Looking into the build logs (View > Navigators > Reports) helped a lot. For me it was an issue with the caseDisplayRepresentations that didn’t include all cases. Even after including all cases I still had to change from DisplayRepresentation(stringLiteral: ) to DisplayRepresentation(title: ). Maybe that helps.
Topic: Machine Learning & AI SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’23
Comment on Error saving @Model with enum
Can confirm, it finally works! Tested with Xcode 15 Beta 7.
Replies
Boosts
Views
Activity
Aug ’23
Comment on Unable to set the new App Tint Color options for App Shortcuts
For some reason I can’t get this to work. Do I need to define the other CFBundlePrimaryIcon keys as well? And I have to use bot new NSAppIconActionTintColorName and NSAppIconComplementingColorNames keys?
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’23
Comment on Unable to set the new App Tint Color options for App Shortcuts
Okay, I’ve figured it out! Yes, you have to add CFBundleIconFiles and UIPrerenderedIcon as well. And no you don’t have to use both new keys. I’ve ended up only using NSAppIconComplementingColorNames for the background gradient now. Seems like you have to add both strings to this array, though. So if you want to have a flat color, just put the same name for the top and bottom color. Btw, here is a tweet showing how it can look like: https://twitter.com/emcro/status/1677437755197132801
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’23
Comment on Can't change time in Xcode Simulator
This issue is still existing as of Xcode 15.0 beta 8 (15A5229m) with iOS 17. I’ve filed a duplicated feedback: FB13136801
Replies
Boosts
Views
Activity
Sep ’23
Comment on More control of TipKit arrow locations
Is there a workaround for a Toggle inside a SwiftUI toolbar? I tried using an additional buttonStyle, but that alters the design of the toolbar and doesn’t show the Tip on macOS anyway …
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’24
Comment on More control of TipKit arrow locations
I was recommended by Apple (in my filed Feedback) that for the Toggle() you have to place .buttonStyle(.borderless) before the .toggleStyle(.button).
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Apr ’24
Comment on Access Core Data ModelContainer with SwiftData
This is a bit old now and I already managed to get it to work (see my answer below). Though, as yours was basically the same, I’m accepting yours as answer – thanks! My example code shows an alternative way, when the Core Data model was named differently before via NSPersistentContainer(name: "Model").
Replies
Boosts
Views
Activity
May ’24
Comment on Migrate Core Data to SwiftData in an App Group (& CloudKit)
Hey, thanks a lot for your detailed response! 🙏 Yes, the migration from Core Data to SwiftData itself works successfully for me. In my case I don’t want to keep the .sqlite name extension … it’s rather that the migration didn’t find the old Core Data for migration and simply created a new database. So how do I get the migration to 1) find my old „Something.sqlite“ Core Data database, 2) then move it to the App Group 3) so that I can then use it for my Widget and enable it for CloudKit?
Replies
Boosts
Views
Activity
Jun ’24