Post

Replies

Boosts

Views

Activity

Reply to EntityQuery defaultResult is not called again when new widgets are added. Shows stale data.
@Engineer I've filed a feedback with a simple example project, as well as screen recordings showing the behavior. Feedback: FB15592256 I also went ahead and duplicated the entire widget, making a second widget with a different "kind" but as can be seen in my screen recording video in the feedback, even the 2 different widgets of different "Kinds" still exhibit this problem and use the old invalid data from the other widget. I've also uploaded the screen recordings and sample project to my Google Drive if anyone else wants to take a look or reproduce. https://drive.google.com/drive/folders/1rC413RFtUP5AoBZQy7plaFEABMcKJZvh?usp=sharing
3w
Reply to AppIntents don't show up in Shortcuts app when in SPM package
Hi Ed ( @DTS Engineer) thanks for this super helpful info. Just wanted to ask a follow-up question on the optimal way apple recommends handling AppIntentsExtension? I currently have an AppIntentsExtension which contains my AppShortcutsProvider and AppIntent, and those are not compiled into my main app. Currently, this works fine, but my main issue is I am not able to call updateAppShortcutParameters from my main app to tell iOS to requery my parameters for my sirishortcuts. What is the recommended way for me to solve this, should I create a framework with those app intents and shortcut provider, and link the framework in both the AppIntentsExtension and main app? or should I try just have the file in one of them, and adding those files as targets to both the AppIntentsExtension and main app? Any help is greatly appreciated!
Sep ’24
Reply to Swift compiler crashes with simple SwiftData model
For anyone else seeing this, from the related Github thread, it seems to be due to the custom init defined. Temporarily making the init only accessible via a static method seems to be a temporary bypass to avoid the build error https://github.com/apple/swift/issues/67823#issuecomment-1673842437 add this inside your swift model, and only instantiate the model via a static method when calling from the parent package. public static func create(value: String) -> Note { Note(value) } hopefully this is fixed in the next release.
Sep ’23