Called when a split view controller transitions to a compact-width size class.
SDKs
- iOS 8.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- UIKit
Declaration
func collapseSecondaryViewController(_ secondaryViewController: UIView Controller, for splitViewController: UISplit View Controller)
Parameters
secondaryViewController
The secondary view controller associated with the split view controller.
splitViewController
The current split view controller.
Discussion
This method provides default behavior when you do not overwrite the split
method. The primary view controller associated with the split view controller is displayed.