<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: -",
    "macOS: 14.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "PhotoKit",
  "identifier" : "/documentation/PhotosUI/PHPickerConfiguration-swift.struct/mode",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "PhotosUI"
    ],
    "preciseIdentifier" : "s:8PhotosUI21PHPickerConfigurationV4modeAA0C4ModeVvp"
  },
  "title" : "mode"
}
-->

# mode

A layout type for the photos in the picker’s view.

```
var mode: PHPickerMode
```

## Discussion

This property offers two ways that photos lay out in the picker:

- A linear mode ([`compact`](/documentation/PhotosUI/PHPickerMode-swift.struct/compact)), in which photos form a line in a smaller area in the picker
- A two-dimensional mode ([`default`](/documentation/PhotosUI/PHPickerMode-swift.struct/default)), in which photos form a grid in a larger area in the picker

---

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)