Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View modifier

layoutDirectionBehavior(_:)

A view modifier that maps SwiftUI's layoutDirectionBehavior.

iOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+
fun Modifier.layoutDirectionBehavior(behavior: LayoutDirectionBehavior): Modifier

Overview

Modifier.layoutDirectionBehavior(behavior = LayoutDirectionBehavior.…)

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

nonisolated func layoutDirectionBehavior(_ behavior: LayoutDirectionBehavior) -> some View

Topics

Overloads

fun Modifier.layoutDirectionBehavior(behavior: LayoutDirectionBehavior): Modifier
SwiftUI View.layoutDirectionBehavior(_:)