Contents

displayMode

The current arrangement of the split view interface.

Declaration

var displayMode: UISplitViewController.DisplayMode { get }

Discussion

This property reflects the arrangement of the 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. If you just want to change which columns are shown, consider using show(_:) or hide(_:) and the split view controller will determine how to update the display mode to display the desired columns.

When isCollapsed 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