4 ms·
If you're using storyboards, another way of solving this is to let your segues set up the view models of the source and destination view controllers. You just n
by afro88 10y ago
If you're using storyboards, another way of solving this is to let your segues set up the view models of the source and destination view controllers. You just need to create some segue subclasses for each source/destination combo you need.
Better than polluting prepareForSegue, and it totally decouples your UIViewControllers from each other. The coupling is in the segue, which is where it should be.