[Solved] I do not understand what this code does(the code is about segues)

That’s not the best segue code. Here’s how I’d code it (for the record, there are several ways to code this): override func prepare(for segue: UIStoryboardSegue, sender: Any?) { if segue.identifier == “[segue name here]” { if let nextVC = segue.destination as? CreateTasksViewController { nextVC.tasksVC = self } } } The code you posted has … Read more