actions Components
Actions
Components that help users take action and make choices. Includes buttons, links, and menu triggers that initiate user interactions.
5 components available
B
DSButton
Universal button component with 5 visual variants, 3 sizes, icon support, loading and disabled states. Uses spring animations for micro-interactions.
v1.0·iOS 17+
I
DSIconButton
Compact button containing only an SF Symbol. Ideal for toolbars, navigation bars, and contextual actions in lists.
v1.0·iOS 17+
B
DSButtonGroup
NewHorizontal pair of buttons for common action patterns like Cancel + Confirm.
1.2.0·iOS
L
DSLink
NewText link with primary color and optional underline.
1.2.0·iOS
M
DSMenuButton
NewButton that opens a dropdown menu of actions with optional icons.
1.2.0·iOS
Quick Import Reference
swift
// Package.swift
.package(url: "https://github.com/luizmellodev/SwiftDS-package", from: "2.0.0")
// In any SwiftUI file
import SwiftDS
struct MyView: View {
var body: some View {
VStack(spacing: DSSpacing.md) {
// Use any actions component here
}
}
}