When to use it
Use it for setup guides. Use a stepper for a stateful workflow.
Apple availability
Import LumenUI in the target that uses this component. iPad support follows the iOS package baseline and uses native iPad layout behavior.
Native example
Use it for setup guides. Use a stepper for a stateful workflow.
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)
}
}Reference
The primary shared and platform-specific options exposed by LumenSteps.
| API | Values or type | Default | Description |
|---|---|---|---|
| steps / start / layout | items / first number / list or rail | required / 1 / list | Use it for setup guides. |
Native behavior
Use it for setup guides. Use a stepper for a stateful workflow.
Ordered list; markers are decorative and titles are headings.
Shared component