---
title: "fixedLayout(width:height:depth:)"
framework: developertoolssupport
role: symbol
role_heading: Type Method
path: "developertoolssupport/previewtrait/fixedlayout(width:height:depth:)"
---

# fixedLayout(width:height:depth:)

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

## Declaration

```swift
@MainActor static func fixedLayout(width: CGFloat, height: CGFloat, depth: CGFloat) -> PreviewTrait<T>
```

## Discussion

Discussion This is the same as PreviewLayout.fixed3D(width:height:depth:).

## See Also

### Getting a layout

- [defaultLayout](developertoolssupport/previewtrait/defaultlayout.md)
- [fixedLayout(width:height:)](developertoolssupport/previewtrait/fixedlayout(width:height:).md)
- [sizeThatFitsLayout](developertoolssupport/previewtrait/sizethatfitslayout.md)
