---
title: "AppIntent(schema:)"
framework: appintents
role: symbol
role_heading: Macro
path: "appintents/appintent(schema:)"
---

# AppIntent(schema:)

A Swift macro you use to make sure your app intent conforms to an schema.

## Declaration

```swift
@attached(memberAttribute) @attached(extension, conformances: AppIntent, AssistantSchemaIntent, ShowInAppSearchResultsIntent, OpenIntent, DeleteIntent, AudioPlaybackIntent, AudioRecordingIntent, LiveActivityIntent, URLRepresentableIntent, names: named(__appSchemaIntent)) macro AppIntent<T>(schema: T) where T : AppSchemaIntent
```

## Mentioned in

Getting started with the App Intents framework Making actions and content discoverable by Apple Intelligence

## See Also

### Markup macros

- [AppEntity(schema:)](appintents/appentity(schema:).md)
- [AppEnum(schema:)](appintents/appenum(schema:).md)
