SwiftUI - Still no support for custom swipe actions

In SwiftUI List / ForEach, there are still no way to have custom swipe actions like we have in UITableViewDelegate leading & trailingSwipeActionsConfigurationForRow

I was expecting this feature to be delivered in the second version of SwiftUI


Replies

I agree, this is quite disappointing. Apple really needs to make SwiftUI a first class API, otherwise developers won't use it.

However, the good news is: meanwhile you can wrap UITableView in a UIViewRepresentable for yourself and provide UISwipeActions & other features which are not yet exposed by SwiftUI in a custom component. Not nice, but ok.