Skip to main content
239

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Themes
Apple docs
ActionsApple

Speed dial

Expand a floating action button into labeled actions.

Public APILumenSpeedDialApple / 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 Speed dial

Keep it to a few related create actions.

Speed dial rendered in the iPhone simulator Lumen playground
Captured exampleiPhone simulatorView dark appearance
swift
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)
    }
}
Apple
A create button in the bottom-trailing corner that opens three labelled actions upward.

Reference

Public API

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

APIValues or typeDefaultDescription
actions / onAction / directionitems / selection callback / expansion siderequired / required / upKeep it to a few related create actions.

Native behavior

Design and accessibility

When to use it

Keep it to a few related create actions.

Accessibility

The trigger exposes expanded state; actions are named and close the menu.

Shared component

Available on other platforms

React NativeAndroid / Compose Web
Apple docsSwiftUI package