Swipe Action
Adds custom swipe actions to a row in a list.
Platform Compatibility
iOS 15.0+ iPadOS 15.0+ macOS 12.0+ watchOS 8.0+ visionOS 1.0+
Tags
SwiftUI Code
List {
Section("Header") {
Text("Foo")
.swipeActions(edge: .leading, allowsFullSwipe: false) {
Button("Action", systemImage: "bolt", action: action)
.tint(.accentColor)
}
Text("Bar")
}
}
Found an issue or have a suggestion?
Created: August 10, 2025Updated: August 10, 2025