
Floating Action Menu
From syxUI — written for both platforms, not translated between them.
A self-contained floating action menu — SwiftUI, styled from system tokens.
Buttons · SwiftUI · iOS 17
- buttons
- swiftui
The actual source
FabMenuCard.swift
// Floating Action Menu · syxUI · https://syxui.dev/components/button-fab
// Free in any project. Keep this line and credit syxUI where a person can read it.
import SwiftUI
// Floating action button with mini actions
struct FabMenuCard: View {
var body: some View {
VStack(alignment: .trailing, spacing: 12) {
ForEach([("photo", "Photo"), ("doc.text", "Document")], id: \.0) { icon, label in
HStack(spacing: 10) {
Text(label).font(.system(size: 13, weight: .medium)).padding(.horizontal, 12).padding(.vertical, 8)
.background(Color(.systemBackground), in: Capsule()).shadow(color: .black.opacity(0.08), radius: 6, y: 2)
Image(systemName: icon).font(.system(size: 16)).foregroundStyle(.primary).frame(width: 44, height: 44)
.background(Color(.systemBackground), in: Circle()).shadow(color: .black.opacity(0.1), radius: 8, y: 3)
}
}
Image(systemName: "plus").font(.system(size: 24, weight: .semibold)).foregroundStyle(.white)
.frame(width: 60, height: 60).background(Color.primary, in: Circle()).shadow(color: .black.opacity(0.22), radius: 12, y: 5)
}
}
}
iOS 17 · No dependencies
Dependencies
- SwiftUI
- No external dependencies
Requires iOS 17


