sizeThatFitsLayout
Fit the container to the size of the preview when offered the size of the device that the preview is running on.
Declaration
@MainActor static var sizeThatFitsLayout: PreviewTrait<Preview.ViewTraits> { get }Discussion
This is the same as PreviewLayout.sizeThatFits.