For iOS 16+, you can set the categoryName in an IntentDescription type.
https://developer.apple.com/documentation/appintents/intentdescription
It can be used in the description type property by all types conforming to the AppIntent protocol.
https://developer.apple.com/documentation/appintents/appintent/description
And for iOS 17+, it can used in the findIntentDescription property in the EnumerableEntityQuery and EntityPropertyQuery protocols (and conforming types).
Update: it seems a little bit limited right now as it only supports English and can't be used with tool calling (contrary to what I said earlier).
And @dimillian shared that the results are not as good as when using the general use case 🤷🏻♂️
It can only get better!
Yeah, you need to put an additional DefaultToolbarItem(kind: .search, placement: .bottomBar) in the Toolbar. In addition to the searchable modifier.
Oh wow 😲
The Foundation Models framework can produce a list of tags based on an input prompt 🤩
let model = SystemLanguageModel(useCase: .contentTagging)
Compatible w/ guided content + tools (for database query or external API)
Documentation: https://developer.apple.com/documentation/foundationmodels/systemlanguagemodel/usecase/contenttagging
When using a synced StoreKit configuration file in Xcode, I noticed the product price is not updated after I change it on App Store Connect.
I tried syncing manually, removing the file but initial prices are used.
Have you noticed the same?
Is it a bug?
Feedback: FB17798486
@simanerush Thank you for this session.
Can you please explain why you use a Task in the photosPickerSelection Binding to switch to the MainActor?
The StickerViewModel seems to already be on the MainActor with the new approachable configuration in Xcode.
@simanerush Thank you for this session.
1. Can you explain why @.State is use in two different views for the same ViewModel Observable object?
2. Why not use the @.State in the App only? And pass the object in the Environment for other views in the tree?
Thank you.
But PersistentModel still doesn't conform to the Sendable protocol. This means that PersistentIdentifier should still be passed.
I'm not sure what adding Sendable to the Model macro changes.
Oh wow 😲
SwiftData models are now Sendable! 🤩
And it has been backported to iOS 17.0+! 🥳
This will make working in with concurrent code easier.
Documentation updated during WWDC25: https://developer.apple.com/documentation/swiftdata/model()