---
title: "fileDialogCustomizationID(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/view/filedialogcustomizationid(_:)"
---

# fileDialogCustomizationID(_:)

On macOS, configures the fileExporter, fileImporter, or fileMover to persist and restore the file dialog configuration.

## Declaration

```swift
nonisolated func fileDialogCustomizationID(_ id: String) -> some View

```

## Parameters

- `id`: An identifier of the configuration.

## Discussion

Discussion Among other parameters, it stores the current directory, view style (e.g., Icons, List, Columns), recent places, and expanded window size. It enables a refined user experience; for example, when importing an image, the user might switch to the Icons view, but the List view could be more convenient in another context. The file dialog stores these settings and applies them every time before presenting the panel. If not provided, on every launch, the file dialog uses the default configuration.

## See Also

### Configuring a file dialog

- [fileDialogBrowserOptions(_:)](swiftui/view/filedialogbrowseroptions(_:).md)
- [fileDialogConfirmationLabel(_:)](swiftui/view/filedialogconfirmationlabel(_:).md)
- [fileDialogDefaultDirectory(_:)](swiftui/view/filedialogdefaultdirectory(_:).md)
- [fileDialogImportsUnresolvedAliases(_:)](swiftui/view/filedialogimportsunresolvedaliases(_:).md)
- [fileDialogMessage(_:)](swiftui/view/filedialogmessage(_:).md)
- [fileDialogURLEnabled(_:)](swiftui/view/filedialogurlenabled(_:).md)
- [FileDialogBrowserOptions](swiftui/filedialogbrowseroptions.md)
