Snap Back Zoomable Overlay Host
Provides a shared overlay for every SnapBackZoomableBox nested inside content. Place this at (or near) the root of your compose tree so the overlay can extend across the entire window, including system bar areas.
When a host is present each SnapBackZoomableBox renders its zoomed content as a Compose overlay inside this host's Box instead of a platform Popup — so the overlay and its scrim cover the full host area.
Example:
SnapBackZoomableOverlayHost(modifier = Modifier.fillMaxSize()) {
Scaffold { padding ->
LazyColumn(contentPadding = padding) {
items(images) { image -> SnapBackZoomableBox { /* content */} }
}
}
}Content copied to clipboard
Parameters
modifier
The modifier applied to the host Box.
content
The screen content that can contain SnapBackZoomableBoxes.