Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View modifier

layoutPriority(_:)

Changes which views a stack shrinks first when space is short.

iOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+
fun Modifier.layoutPriority(value: Double): Modifier

Overview

Modifier.layoutPriority(value = 0.0)

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

nonisolated func layoutPriority(_ value: Double) -> some View

Topics

Overloads

fun Modifier.layoutPriority(value: Double): Modifier
SwiftUI View.layoutPriority(_:)