viewController(for:)
Returns the view controller associated with the specified column of the split view interface.
Declaration
func viewController(for column: UISplitViewController.Column) -> UIViewController?Parameters
- column:
The corresponding column of the split view interface. See Column for values.
Return Value
The corresponding child view controller object.
Discussion
This method doesn’t apply to classic split view controllers with a style of UISplitViewController.Style.unspecified. For a classic split view controller, instead use the viewControllers property to get the view controllers in the split view interface.