<!--
{
  "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/FileDialogBrowserOptions",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI24FileDialogBrowserOptionsV"
  },
  "title" : "FileDialogBrowserOptions"
}
-->

# FileDialogBrowserOptions

The way that file dialogs present the file system.

```
struct FileDialogBrowserOptions
```

## Overview

Apply the options using the [`fileDialogBrowserOptions(_:)`](/documentation/SwiftUI/View/fileDialogBrowserOptions(_:)) modifier.

## Topics

### Getting browser options

[`static let displayFileExtensions: FileDialogBrowserOptions`](/documentation/SwiftUI/FileDialogBrowserOptions/displayFileExtensions)

On iOS, configures the `fileExporter`, `fileImporter`,
or `fileMover` to show or hide file extensions.
Default behavior is to hide them.
On macOS, this option has no effect.

[`static let enumeratePackages: FileDialogBrowserOptions`](/documentation/SwiftUI/FileDialogBrowserOptions/enumeratePackages)

Allows enumerating packages contents in contrast to the default behavior
when packages are represented flatly, similar to files.

[`static let includeHiddenFiles: FileDialogBrowserOptions`](/documentation/SwiftUI/FileDialogBrowserOptions/includeHiddenFiles)

Displays the files that are hidden by default.

## Relationships

### Conforms To

[`OptionSet`](/documentation/Swift/OptionSet)

[`ExpressibleByArrayLiteral`](/documentation/Swift/ExpressibleByArrayLiteral)

[`SetAlgebra`](/documentation/Swift/SetAlgebra)

[`Equatable`](/documentation/Swift/Equatable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

---

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)