PreviewTrait Customizations that you can apply to a preview. Declaration@MainActor struct PreviewTrait<T> TopicsGetting a layoutdefaultLayoutfixedLayout(width:height:)fixedLayout(width:height:depth:)sizeThatFitsLayoutGetting an orientationportraitportraitUpsideDownlandscapeLeftlandscapeRightInitializersinit(_:)Type PropertiesassistiveAccessType Methodsmodifier(_:) RelationshipsConforms ToSendableSendableMetatype See AlsoPreview definitionPreviewPreviewLayoutPreviewRegistry