Contents

defaultLayout

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

Declaration

@MainActor static var defaultLayout: PreviewTrait<Preview.ViewTraits> { get }

Discussion

This is the same as the PreviewLayout.device layout, and is the default if you don’t specify a layout trait.

See Also

Getting a layout