Post

Replies

Boosts

Views

Activity

Reply to Guidance Implementing IndexedEntity and CSSearchableItemAttributeSet
After spending some time talking with DTS and reviewing the updated App Intent sample code located here https://developer.apple.com/documentation/appintents/acceleratingappinteractionswithappintents, I've got my answer. The sample provides one way to integrate Spotlight, by indexing a separate model and associating the app entity. What I discovered was that if you want to implement IndexedEntity, you can indeed provide an extended attribute set, you just need to start with the existing one, not create your own. Pretty simple: extension HotelEntity: IndexedEntity { var attributeSet: CSSearchableItemAttributeSet { let existingAttributes = defaultAttributeSet // this is the key existingAttributes.displayName = "\(name) displayName" existingAttributes.title = "\(name) title" existingAttributes.domainIdentifier = "\(name) domainIdentifier" existingAttributes.identifier = "\(name) identifier" existingAttributes.contentDescription = "\(name) contentDescription" existingAttributes.namedLocation = "\(name) namedLocation" return existingAttributes } } With that, it's all working!
Nov ’24
Reply to CSUserQuery Generating Model Load Failure - No Results
Same with seed 3.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’24
Reply to Importing Data into SwiftData in the Background Using ModelActor and @Query
iOS 18 issue submitted as FB14240514
Replies
Boosts
Views
Activity
Jul ’24
Reply to Importing Data into SwiftData in the Background Using ModelActor and @Query
There's a note on my FB that a fix has been identified for a future release - hopefully!
Replies
Boosts
Views
Activity
Aug ’24
Reply to Can't release builds via MacOS 15 beta
As the other comment says, you can't... you can also try Xcode Cloud. Your developer subscription includes some hours. That's what I've been doing, working great.
Replies
Boosts
Views
Activity
Aug ’24
Reply to App is crashing when using "withCheckedContinuation" in Xcode 16 beta 5
Same. It seems broken, I've been seeing a lot of comments from others so it appears widespread.
Replies
Boosts
Views
Activity
Aug ’24
Reply to SwiftData: SwiftData.PersistentIdentifierImplementation) was remapped to a temporary identifier during save
Interesting... I thought that was just supposed to do an UPSERT (which it seems to do), though I thought that was by design and not something that should justify a warning. Agree that it seems to work fine despite the scary error message.
Replies
Boosts
Views
Activity
Sep ’24
Reply to Swift Data Predicate Evaluation Crashes in Release Build When Generics Used
Thanks. This has been filed as FB15340069.
Replies
Boosts
Views
Activity
Oct ’24
Reply to iPadOS 18.2 genmoji, image wand, image playground
The first seed has only been out for a week so it's not possible that you've been waiting that long. Check the Feedback app - it has a note posted about testing those features stating that users will be added over the coming weeks (i.e. multiple).
Replies
Boosts
Views
Activity
Oct ’24
Reply to Missing parameter prompt for search Assistant Intents
Are these features even enabled in any version of iOS 18, shipped or seeded? I thought that the @AssistantIntent and related stuff was included in the SDK for us to get ready but that these weren't active yet in Siri - I can't remember where I got that, the WWDC video I think? No, I have not been able to get any prompt to appear.
Replies
Boosts
Views
Activity
Oct ’24
Reply to Missing parameter prompt for search Assistant Intents
Yeah, it's talked about here - all of the testing is meant to be done in the Shortcuts app for now. https://developer.apple.com/videos/play/wwdc2024/10133/?time=104
Replies
Boosts
Views
Activity
Oct ’24
Reply to System search AssistantIntent not working
I don't think this is live in Siri yet... at least they haven't announced it and none of the other features in the 'personal context' category have shipped. Apple hasn't said when - rumors say 18.3 or 18.4 (i.e. 2025).
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’24
Reply to Guidance Implementing IndexedEntity and CSSearchableItemAttributeSet
Related follow-up question for this integration with Spotlight: Do I need to implement both CSSearchableItem's new associateAppEntity AND also a custom implementation of attributeSet in my IndexedEntity conformance? It seems duplicative but I can't tell from the video if you're supposed to do both or just one or the other.
Replies
Boosts
Views
Activity
Nov ’24
Reply to Bug with Transferable + AppEntity
I was bored so played with this a bit - I couldn't make it work with a custom type. Works fine if you use the built-in 'todoItem' type. Seems like a bug, yeah.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’24
Reply to Guidance Implementing IndexedEntity and CSSearchableItemAttributeSet
After spending some time talking with DTS and reviewing the updated App Intent sample code located here https://developer.apple.com/documentation/appintents/acceleratingappinteractionswithappintents, I've got my answer. The sample provides one way to integrate Spotlight, by indexing a separate model and associating the app entity. What I discovered was that if you want to implement IndexedEntity, you can indeed provide an extended attribute set, you just need to start with the existing one, not create your own. Pretty simple: extension HotelEntity: IndexedEntity { var attributeSet: CSSearchableItemAttributeSet { let existingAttributes = defaultAttributeSet // this is the key existingAttributes.displayName = "\(name) displayName" existingAttributes.title = "\(name) title" existingAttributes.domainIdentifier = "\(name) domainIdentifier" existingAttributes.identifier = "\(name) identifier" existingAttributes.contentDescription = "\(name) contentDescription" existingAttributes.namedLocation = "\(name) namedLocation" return existingAttributes } } With that, it's all working!
Replies
Boosts
Views
Activity
Nov ’24
Reply to Do we need *both* associateAppEntity and to implement attributeSet when indexing App Entities?
After spending more time, you can do both if you want to but you don't need to.
Replies
Boosts
Views
Activity
Nov ’24