Calling method in another view controller from modal view controller using a delegate
问题 I am using a modal segue to create a view controller that I want to dismiss and then call a method in the origin view controller. I have used a protocol/delegate pattern but for some reason the method is never called. The code is below: Please note that I removed a lot of non-relevant code to keep it clean here Thanks!! VC1: final class WorkoutViewController: UIViewController, StartWorkoutButtonDelegate { weak var dataSource: WorkoutViewControllerDataSource! private var workout: Workout!