Instance Property


The current arrangement of the split view controller’s contents.


var displayMode: UISplitViewController.DisplayMode { get }


This property reflects the arrangement of the two child view controllers in a split view interface. The value in this property is never set to UISplitViewController.DisplayMode.automatic. To change the current display mode, change the value of the preferredDisplayMode property.

When the isCollapsed property is true, the value of this property is ignored. A collapsed split view interface contains only one view controller so the display mode is superfluous.

See Also

Managing the Display Mode

var preferredDisplayMode: UISplitViewController.DisplayMode

The preferred arrangement of the split view controller interface.

var displayModeButtonItem: UIBarButtonItem

A button that changes the display mode of the split view controller.