
Swipe Actions
From syxUI — written for both platforms, not translated between them.
A row with revealed swipe actions (archive / delete).
Cards · SwiftUI · iOS 17
- cards
- swiftui
The actual source
SwipeActionsRow.swift
// Swipe Actions · syxUI · https://syxui.dev/components/list-swipe
// Free in any project. Keep this line and credit syxUI where a person can read it.
import SwiftUI
// Swipe actions revealed
struct SwipeActionsRow: View {
var body: some View {
HStack(spacing: 0) {
HStack(spacing: 12) { Image(systemName: "envelope.open.fill").foregroundStyle(.secondary); VStack(alignment: .leading, spacing: 2) { Text("Weekly digest").font(.system(size: 15, weight: .medium)); Text("Your top stories this week").font(.system(size: 12)).foregroundStyle(.secondary) }; Spacer() }.padding(.horizontal, 14).padding(.vertical, 14).frame(width: 230, alignment: .leading).background(Color(.systemBackground))
VStack { Image(systemName: "archivebox.fill"); Text("Archive").font(.system(size: 10)) }.foregroundStyle(.white).frame(width: 60, height: 74).background(Color(red: 0.55, green: 0.55, blue: 0.6))
VStack { Image(systemName: "trash.fill"); Text("Delete").font(.system(size: 10)) }.foregroundStyle(.white).frame(width: 60, height: 74).background(Color(red: 0.90, green: 0.24, blue: 0.22))
}.clipShape(RoundedRectangle(cornerRadius: 14, style: .continuous)).overlay(RoundedRectangle(cornerRadius: 14, style: .continuous).stroke(Color.primary.opacity(0.06))).frame(width: 350)
}
}
iOS 17 · No dependencies
Dependencies
- SwiftUI
- No external dependencies
Requires iOS 17


