JetpackOverlayLoadingWheel

fun JetpackOverlayLoadingWheel(contentDesc: String, modifier: Modifier = Modifier)

A loading wheel with a semi-transparent surface background and elevation.

This variant wraps JetpackLoadingWheel in a rounded surface, making it suitable for overlay scenarios like blocking UI interactions during loading.

Usage example:

Box(modifier = Modifier.fillMaxSize()) {
// Main content
Content()

// Overlay loading indicator
if (isLoading) {
JetpackOverlayLoadingWheel(
contentDesc = "Loading...",
modifier = Modifier.align(Alignment.Center),
)
}
}

Parameters

contentDesc

The content description for accessibility services.

modifier

The modifier to be applied to the surface container.