---
title: PreviewLayout.device
framework: developertoolssupport
role: symbol
role_heading: Case
path: developertoolssupport/previewlayout/device
---

# PreviewLayout.device

Center the preview in a container the size of the device on which the preview is running.

## Declaration

```swift
case device
```

## See Also

### Getting a layout

- [PreviewLayout.fixed(width:height:)](developertoolssupport/previewlayout/fixed(width:height:).md)
- [PreviewLayout.fixed3D(width:height:depth:)](developertoolssupport/previewlayout/fixed3d(width:height:depth:).md)
- [PreviewLayout.sizeThatFits](developertoolssupport/previewlayout/sizethatfits.md)
