When to use it
Keep it to a few related create actions.
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
Keep it to a few related create actions.
import LumenUI
import SwiftUI
struct SpeedDialExample: View {
@State private var lastAction = "None"
var body: some View {
LumenSpeedDial("Create", actions: [
LumenSpeedDialAction("New project", value: "project", icon: .folder),
LumenSpeedDialAction("Upload file", value: "upload", icon: .upload),
LumenSpeedDialAction("Invite member", value: "invite", icon: .userPlus)
]) { value in
lastAction = value
}
.padding(LumenSpacing.lg)
.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .bottomTrailing)
}
}Reference
The primary shared and platform-specific options exposed by LumenSpeedDial.
| API | Values or type | Default | Description |
|---|---|---|---|
| actions / onAction / direction | items / selection callback / expansion side | required / required / up | Keep it to a few related create actions. |
Native behavior
Keep it to a few related create actions.
The trigger exposes expanded state; actions are named and close the menu.
Shared component