I’m looking for advice re integration of UITableView into SwiftUI.
I’m doing that because I want control of the table background and row swipe functionality, which I believe is still not available with List in SwiftUI.
I’ve watched WWDC19 tutorial on UIKit Integration, and Rana talks about using the target action pattern, but I can’t work out how that would be done with a TableView.
Specifically:
I have the UITableView wrapped properly, using a coordinator, and displaying within SwiftUI.
But when a row is deleted, I am struggling with how to pass back the deleted row’s indexPath , and how to delete the relevant data within the source array in SwiftUI.
Any help much appreciated!
I’m doing that because I want control of the table background and row swipe functionality, which I believe is still not available with List in SwiftUI.
I’ve watched WWDC19 tutorial on UIKit Integration, and Rana talks about using the target action pattern, but I can’t work out how that would be done with a TableView.
Specifically:
I have the UITableView wrapped properly, using a coordinator, and displaying within SwiftUI.
But when a row is deleted, I am struggling with how to pass back the deleted row’s indexPath , and how to delete the relevant data within the source array in SwiftUI.
Any help much appreciated!