Contents

fixedLayout(width:height:)

Center the preview in a fixed size container with the given dimensions.

Declaration

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

Discussion

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

See Also

Getting a layout