-
快捷指令的新功能
探索各种技巧,了解如何利用你 App 的内容构建强大的快捷指令。新的自动化功能为 App 与系统的集成解锁了更多可能。借助新的“使用模型”转录功能,优化 App 实体在 LLM 中的呈现方式。将 App 中的丰富信息存储在跨设备保持同步的快捷指令中。了解如何结合使用这些功能,通过无缝整合你 App 中的内容和功能来构建智能、强大的自动化。
章节
- 0:01 - Introduction
- 0:57 - Automations
- 3:25 - Use Model
- 6:58 - Storage
资源
相关视频
WWDC25
-
搜索此视频…
-
-
6:12 - Soup Entity Example
// MARK: - Soup Entity import AppIntents struct SoupEntity: AppEntity, Identifiable { static var typeDisplayRepresentation = TypeDisplayRepresentation( name: "Soup", numericFormat: "\(placeholder: .int) soups" ) static var defaultQuery = SoupEntityQuery() var id: Soup.ID @Property var name: String @Property(title: "Available Today") var isAvailableToday: Bool @Property(title: "Ingredients") var ingredients: String var displayRepresentation: DisplayRepresentation { DisplayRepresentation(title: "\(name)", subtitle: SoupStore.description(for: id)) } } -
10:05 - Soup Entity Example
// MARK: - Soup Entity import AppIntents struct SoupEntity: AppEntity, Identifiable { static var typeDisplayRepresentation = TypeDisplayRepresentation( name: "Soup", numericFormat: "\(placeholder: .int) soups" ) static var defaultQuery = SoupEntityQuery() var id: Soup.ID @Property var name: String @Property(title: "Available Today") var isAvailableToday: Bool @Property(title: "Ingredients") var ingredients: String var displayRepresentation: DisplayRepresentation { DisplayRepresentation(title: "\(name)", subtitle: SoupStore.description(for: id)) } }
-
-
- 0:01 - Introduction
Shortcuts lets people combine everyday app actions and surface them across the system - like through Siri, Control Center, and the Action Button. Explore three major enhancements to Shortcuts and how to leverage the content in your app to integrate with the system.
- 0:57 - Automations
In iOS 26, Automations are easier to discover in the Shortcuts editor. There are three new automation types - screenshot, keyboard connection, and notification. The notification automation enables fine-grained, keyword-filtered triggers based on notification content. Learn techniques to build notifications that integrate well with automations.
- 3:25 - Use Model
The Use Model action has access to the latest Apple Intelligence models with web retrieval. Use the model transcript inspector to evaluate the exact data that's passed to the model from your app's App Intent entities.
- 6:58 - Storage
Storage lets shortcuts persist data between runs using Get, Set, and global storage values that sync across all of someone's devices via iCloud. Use storage in powerful ways, like to give the Use Model action a "memory". For App Intent entities, use a stable, device-consistent identifier to ensure correct recognition across devices.