Skip to main content
196

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Apple docs
Data displayApple

Carousel

Page through controlled native slides with accessible navigation.

Public APILumenCarouselApple / SwiftUISwift product: LumenUI

Apple availability

Supported native targets

Import LumenUI in the target that uses this component. iPad support follows the iOS package baseline and uses native iPad layout behavior.

iPhone · iOS 16+iPad · iPadOS 16+Mac · macOS 13+Apple Vision · visionOS 1+

Native example

Use Carousel

Hosts own stable slide identities and rich content. Native paging requests bounded index changes; there is no autoplay or wrapping. Invalid host indices show recovery without rewriting state.

Carousel rendered in the iPhone simulator Lumen playground
Captured exampleiPhone simulator
swift
LumenCarousel("Project slides", slides: slides, index: $index) { slide, _ in LumenText(.verbatim(slide.label)) }

Reference

Public API

The primary shared and platform-specific options exposed by LumenCarousel.

APIValues or typeDefaultDescription
slides / indexStable LumenCarouselSlide records / controlled integerRequiredControls the dataset and current visible page.
height / disabled / statusNumeric height / boolean / ready-loading-error200 / false / readyBounds the viewport and guards native paging and result states.

Native behavior

Design and accessibility

When to use it

Hosts own stable slide identities and rich content. Native paging requests bounded index changes; there is no autoplay or wrapping. Invalid host indices show recovery without rewriting state.

Accessibility

Localized slide positions, named previous/next and selected indicators with native paging.

Shared component

Available on other platforms

React NativeAndroid / Compose
Apple docsSwiftUI package