Skip to content

Image viewer with pages

Swipe between several images, each zoomed on its own.

Image viewer with pages Image viewer with pages

JengaImageViewer(
    pageCount = 3,
    onDismissRequest = { open = false },
    title = { page -> "Photo ${page + 1} of 3" },
    closeContentDescription = "Close",
    bottomBar = { page, goToPage -> /* thumbnail strip calling goToPage(i) */ },
    pageContent = { page ->
        JengaImage(
            url = urls[page],
            contentDescription = null,
            fit = JengaImageFit.Contain,
        )
    },
)