Contents

fixedLayout(width:height:depth:)

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

Declaration

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

Discussion

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

See Also

Getting a layout