---
title: PHPickerMode
framework: photosui
role: symbol
role_heading: Structure
path: photosui/phpickermode-swift.struct
---

# PHPickerMode

Layout options that determine how the picker orders photos visually.

## Declaration

```swift
struct PHPickerMode
```

## Overview

Overview This structure defines the possible options for the photos picker configuration (PHPickerConfiguration) property mode. The option you choose determines the direction that its assets scroll in the view. In addition, the linear scrolling behavior of compact mode offers the best user experience in a space-constrained layout.

## Topics

### Laying out photos

- [compact](photosui/phpickermode-swift.struct/compact.md)
- [default](photosui/phpickermode-swift.struct/default.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Customizing picker appearance and behavior

- [mode](photosui/phpickerconfiguration-swift.struct/mode.md)
- [disabledCapabilities](photosui/phpickerconfiguration-swift.struct/disabledcapabilities.md)
- [PHPickerCapabilities](photosui/phpickercapabilities.md)
- [edgesWithoutContentMargins](photosui/phpickerconfiguration-swift.struct/edgeswithoutcontentmargins.md)
- [PHPickerConfiguration.Update](photosui/phpickerconfiguration-swift.struct/update.md)
