Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View modifier

windowResizeBehavior(_:)

A view modifier that maps SwiftUI's windowResizeBehavior.

iOS: unavailable (no-op)macOS 15.0+tvOS: unavailable (no-op)watchOS: unavailable (no-op)
fun Modifier.windowResizeBehavior(behavior: WindowInteractionBehavior): Modifier

Overview

Modifier.windowResizeBehavior(behavior = WindowInteractionBehavior.…)

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

nonisolated func windowResizeBehavior(_ behavior: WindowInteractionBehavior) -> some View

Topics

Overloads

fun Modifier.windowResizeBehavior(behavior: WindowInteractionBehavior): Modifier
SwiftUI View.windowResizeBehavior(_:)