in SwiftUI the preview can be displayed with different orientations using the previewInterfaceOrientation() view modfier. In this tutorial, the preview will be displayed with the four different orientations: portrait, portraitUpsideDown, landscapeLeft, and landscapeRight.