---
title: mode
framework: photosui
role: symbol
role_heading: Instance Property
path: photosui/phpickerconfiguration-swift.struct/mode
---

# mode

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

## Declaration

```swift
var mode: PHPickerMode
```

## Discussion

Discussion This property offers two ways that photos lay out in the picker: A linear mode (compact), in which photos form a line in a smaller area in the picker A two-dimensional mode (default), in which photos form a grid in a larger area in the picker

## See Also

### Customizing picker appearance and behavior

- [PHPickerMode](photosui/phpickermode-swift.struct.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)
