Contents

tabGroup

Declaration

var tabGroup: some AssistantSchemas.Entity { get }

Overview

To integrate your app’s functionality with Siri and Apple Intelligence, you use Swift macros that generate additional properties and add protocol conformance for your app entity implementation.

For general information about app intent domains, see doc:Integrating-actions-with-siri-and-apple-intelligence.

The following example shows an app entity that conforms to the browser.tabGroup schema:

@AppEntity(schema: .browser.tabGroup)
struct TabGroupEntity {
    struct TabGroupEntityQuery: EntityQuery {
        func entities(for identifiers: [TabGroupEntity.ID]) async throws -> [TabGroupEntity] {
            <#code#>
        }
    }
    static let defaultQuery = TabGroupEntityQuery()

    let displayRepresentation: DisplayRepresentation = {
        <#DisplayRepresentation#>
    }

    let id: <#Identifiable.ID#>
}