An intent schema that moves existing files or folders.
To make your app's actions available to Apple Intelligence,
conform your ``AppIntent`` to a schema that describes your action to the system.
If your app's functionality aligns with the `files` domain
and one of your app's actions matches the `moveFiles` schema,
you can generate the properties and protocol conformance the schema requires
for your intent implementation
with the `@AppIntent( .files.moveFiles)` Swift macro.
To make your app work with Siri,
see <doc://com.apple.documentation/documentation/appintents/apple-intelligence-and-siri-ai>.
The following example shows an intent that conforms to the `moveFiles` schema:
```swift
@AppIntent(schema: .files.moveFiles)
struct MoveFilesIntent {
var entities: [<#FileEntity#>]
var destinationFolder: <#FileEntity#>
func perform() async throws -> some IntentResult {
<#code#>
}
}
```
The schema supports the following system experiences:
- Shortcuts
For more information about the App Intents framework and the experiences it supports,
see <doc://com.apple.documentation/documentation/appintents/getting-started-with-the-app-intents-framework>.
get · iOS 18.0+
deleteFiles
Swift declaration
var deleteFiles: some AppSchemaIntent { get }
An intent schema that deletes existing files or folders.
To make your app's actions available to Apple Intelligence,
conform your ``AppIntent`` to a schema that describes your action to the system.
If your app's functionality aligns with the `files` domain
and one of your app's actions matches the `deleteFiles` schema,
you can generate the properties and protocol conformance the schema requires
for your intent implementation
with the `@AppIntent( .files.deleteFiles)` Swift macro.
To make your app work with Siri,
see <doc://com.apple.documentation/documentation/appintents/apple-intelligence-and-siri-ai>.
The following example shows an intent that conforms to the `deleteFiles` schema:
```swift
@AppIntent(schema: .files.deleteFiles)
struct DeleteFilesIntent: DeleteIntent {
var entities: [<#FileEntity#>]
func perform() async throws -> some IntentResult {
<#code#>
}
}
```
The schema supports the following system experiences:
- Shortcuts
For more information about the App Intents framework and the experiences it supports,
see <doc://com.apple.documentation/documentation/appintents/getting-started-with-the-app-intents-framework>.
get · iOS 18.0+
renameFile
Swift declaration
var renameFile: some AppSchemaIntent { get }
An intent schema that renames an existing file or folder.
To make your app's actions available to Apple Intelligence,
conform your ``AppIntent`` to a schema that describes your action to the system.
If your app's functionality aligns with the `files` domain
and one of your app's actions matches the `renameFile` schema,
you can generate the properties and protocol conformance the schema requires
for your intent implementation
with the `@AppIntent( .files.renameFile)` Swift macro.
To make your app work with Siri,
see <doc://com.apple.documentation/documentation/appintents/apple-intelligence-and-siri-ai>.
The following example shows an intent that conforms to the `renameFile` schema:
```swift
@AppIntent(schema: .files.renameFile)
struct RenameFileIntent {
var target: <#FileEntity#>
var newName: String
func perform() async throws -> some IntentResult {
<#code#>
}
}
```
The schema supports the following system experiences:
- Shortcuts
For more information about the App Intents framework and the experiences it supports,
see <doc://com.apple.documentation/documentation/appintents/getting-started-with-the-app-intents-framework>.
get · iOS 18.0+
createFolder
Swift declaration
var createFolder: some AppSchemaIntent { get }
An intent schema that creates a new folder.
To make your app's actions available to Apple Intelligence,
conform your ``AppIntent`` to a schema that describes your action to the system.
If your app's functionality aligns with the `files` domain
and one of your app's actions matches the `createFolder` schema,
you can generate the properties and protocol conformance the schema requires
for your intent implementation
with the `@AppIntent( .files.createFolder)` Swift macro.
To make your app work with Siri,
see <doc://com.apple.documentation/documentation/appintents/apple-intelligence-and-siri-ai>.
The following example shows an intent that conforms to the `createFolder` schema:
```swift
@AppIntent(schema: .files.createFolder)
struct CreateFolderIntent {
var fileName: String?
var target: <#FileEntity#>
func perform() async throws -> some ReturnsValue<<#FileEntity#>> {
<#code#>
}
}
```
The schema supports the following system experiences:
- Shortcuts
For more information about the App Intents framework and the experiences it supports,
see <doc://com.apple.documentation/documentation/appintents/getting-started-with-the-app-intents-framework>.
get · iOS 18.0+
openFile
Swift declaration
var openFile: some AppSchemaIntent { get }
An intent schema that opens a selected file or folder.
To make your app's actions available to Apple Intelligence,
conform your ``AppIntent`` to a schema that describes your action to the system.
If your app's functionality aligns with the `files` domain
and one of your app's actions matches the `openFile` schema,
you can generate the properties and protocol conformance the schema requires
for your intent implementation
with the `@AppIntent( .files.openFile)` Swift macro.
To make your app work with Siri,
see <doc://com.apple.documentation/documentation/appintents/apple-intelligence-and-siri-ai>.
The following example shows an intent that conforms to the `openFile` schema:
```swift
@AppIntent(schema: .files.openFile)
struct OpenFileIntent: OpenIntent {
var target: <#FileEntity#>
func perform() async throws -> some IntentResult {
<#code#>
}
}
```
The schema supports the following system experiences:
- Shortcuts
For more information about the App Intents framework and the experiences it supports,
see <doc://com.apple.documentation/documentation/appintents/getting-started-with-the-app-intents-framework>.