---
title: "PreviewLayout.fixed3D(width:height:depth:)"
framework: developertoolssupport
role: symbol
role_heading: Case
path: "developertoolssupport/previewlayout/fixed3d(width:height:depth:)"
---

# PreviewLayout.fixed3D(width:height:depth:)

Centers the preview in a fixed-size, 3D container.

## Declaration

```swift
case fixed3D(width: CGFloat, height: CGFloat, depth: CGFloat)
```

## See Also

### Getting a layout

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