Instance Method

previewLayout(_:)

Overrides the size of the container for the preview.

Declaration

func previewLayout(_ value: PreviewLayout) -> some View

Discussion

Default is .device.

See Also

Configuring View Previews

func previewDevice(PreviewDevice?) -> View

Overrides the device for a preview.

func previewDisplayName(String?) -> View

Provides a user visible name shown in the editor.