Skip to main content
239

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Themes
Apple docs
LayoutApple

Steps

Show numbered instructions with titles and bodies.

Public APILumenStepsApple / 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 TV · tvOS 16+Apple Vision · visionOS 1+Apple Watch · watchOS 9+

Native example

Use Steps

Use it for setup guides. Use a stepper for a stateful workflow.

Steps rendered in the iPhone simulator Lumen playground
Captured exampleiPhone simulatorView dark appearance
swift
import LumenUI
import SwiftUI

struct StepsExample: View {
    private let steps = [
        LumenStep(title: "Add the package", body: "Add LumenUI with Swift Package Manager."),
        LumenStep(title: "Apply a theme", body: "Wrap your root view with a Lumen theme."),
        LumenStep(title: "Ship it")
    ]

    var body: some View {
        LumenSteps(steps, layout: .rail)
    }
}
Apple
Three quick-start steps joined by a rail, numbered from 1.

Reference

Public API

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

APIValues or typeDefaultDescription
steps / start / layoutitems / first number / list or railrequired / 1 / listUse it for setup guides.

Native behavior

Design and accessibility

When to use it

Use it for setup guides. Use a stepper for a stateful workflow.

Accessibility

Ordered list; markers are decorative and titles are headings.

Shared component

Available on other platforms

React NativeAndroid / Compose Web
Apple docsSwiftUI package