Swipe Actions in SwiftUI

Gabriel Theodoropoulos
Jul 9 · 7 min read
Image by Firmbee from Pixabay

Swipe actions is not a new concept in iOS or macOS programming. We have been using such actions for years in Apple’s applications, with a quite typical example being the Mail app. Programmatically we know them from the table view in UIKit, where we implement them in order to allow users to perform specific operations on individual cells. In SwiftUI swipe actions had not been available until WWDC 2021; it was there where it was eventually…