<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/fileDialogCustomizationID(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewPAAE25fileDialogCustomizationIDyQrSSF"
  },
  "title" : "fileDialogCustomizationID(_:)"
}
-->

# fileDialogCustomizationID(_:)

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

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

## Parameters

`id`

An identifier of the configuration.

## 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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)