Structure

InterfaceOrientation

The orientation of the interface from the user’s perspective.

Declaration 宣言

struct InterfaceOrientation

Overview 概要

By default, device previews appear right side up, using orientation portrait. You can change the orientation with a call to the previewInterfaceOrientation(_:) modifier:


struct CircleImage_Previews: PreviewProvider {
    static var previews: some View {
        CircleImage()
            .previewInterfaceOrientation(.landscapeRight)
    }
}

Topics 話題

Getting an Orientation

Accessing All Orientations

Identifying and Comparing Orientations

Relationships 関係

Conforms To 次に準拠

See Also 参照

Preview Customization プレビューカスタマイゼーション