PreviewLayout.fixed(width:height:)
Center the preview in a fixed size container with the given dimensions.
Declaration
case fixed(width: CGFloat, height: CGFloat)Parameters
- width:
The width of the container.
- height:
The height of the container.
Center the preview in a fixed size container with the given dimensions.
case fixed(width: CGFloat, height: CGFloat)The width of the container.
The height of the container.