My tableview currently fills an array of objects from core data and displays them. This part of the application works perfectly. I can add objects, scroll through them and delete them:
var items : [Item] = []
What I'm struggling with is passing the object of the selected cell to another view controller. I want to implement an edit function so that users can edit their items. When an item in the tableview is tapped, a segue to a new "Edit" view controller should occur. How can I pass the selected item in the tableview to a new view controller?