Build apps faster with over 150+ styled components and screens! Check it out →

preferKeepClear

Android

Modifier in Compose Foundation

Mark the layout rectangle as preferring to stay clear of floating windows.

This Modifier only has an effect on SDK 33 and above.

Last updated:

Installation

dependencies {
   implementation("androidx.compose.foundation:foundation:1.8.0-beta01")
}

Overloads


fun Modifier.preferKeepClear()

fun Modifier.preferKeepClear(rectProvider: (LayoutCoordinates) -> Rect)
by @alexstyl