Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View modifier

previewInterfaceOrientation(_:)

A view modifier that maps SwiftUI's previewInterfaceOrientation.

iOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+
fun Modifier.previewInterfaceOrientation(value: InterfaceOrientation): Modifier

Overview

Modifier.previewInterfaceOrientation(value = InterfaceOrientation.…)

This is the Kotlin form of SwiftUI View.previewInterfaceOrientation(_:): SwiftUI documentation. In Swift it reads:

nonisolated func previewInterfaceOrientation(_ value: InterfaceOrientation) -> some View

Topics

Overloads

fun Modifier.previewInterfaceOrientation(value: InterfaceOrientation): Modifier
SwiftUI View.previewInterfaceOrientation(_:)