Swipe Action
Adds custom swipe actions to a row in a list.
Platform Compatibility
Tags
SwiftUI Code
List {
Section("Header") {
Text("Foo")
.swipeActions(edge: .leading, allowsFullSwipe: false) {
Button("Action", systemImage: "bolt", action: action)
.tint(.accentColor)
}
Text("Bar")
}
}