@roman19 Thanks a lot for your code snippet here. I do understand how we can splitViewController:topColumnForCollapsingToProposedTopColumn: to restore the state when switching from regular to compact mode. The thing I do not understand is how we can implement the other way around. So going from compact mode to regular mode. The only way to notice the transition, afaik, is splitViewController:displayModeForExpandingToProposedDisplayMode:. But when I try to reset the view controller to be shown by the SplitVC by calling setViewController(_ vc: UIViewController?, for column: UISplitViewController.Column) my app will crash with the following exception:
** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Mutating UISplitViewController with -setViewController:forColumn: is not allowed during a delegate callback.'
If I am not allowed to set the secondary view controller in the delegate method, how am I supposed to show the correct VC after the layout changed from compact to regular ?