I’m having a little trouble performing a custom segue with a UIButton in a custom TableViewCell. My app is two tableviews, and when you tap the button in a cell in the parent tableView, the app should segue to display a unique child list based on the indexPath of the cell tapped. I’ve tried doing a performSegue in my button action, but it won’t let me pass the indexPath as the “object” in performSegue. Is there a way to access the object of performSegue in prepare(for: segue)? Any help would be greatly appreciated.
Powered by WPeMatico