Enumeration

PreviewLayout

The size constraint for a preview.

Declaration

enum PreviewLayout

Topics

Choosing a Layout

case device

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

case fixed(width: CGFloat, height: CGFloat)

Center the preview in a fixed size container.

case sizeThatFits

Fit the container to the size of the preview when offered the size of the device on which the preview is running.

See Also

Preview Customization

struct PreviewDevice

The simulator device that runs a preview.

enum PreviewPlatform

The operating system on which to run the preview.