Constants describing the possible display modes for a split view controller.


enum DisplayMode : Int


Display modes apply to a split view controller in an expanded arrangement. When the split view interface is collapsed, the display mode is ignored.



case automatic

The split view controller automatically decides the most appropriate display mode based on the device and the current app size. You can assign this constant as the value of the preferredDisplayMode property but this value is never reported by the displayMode property.

case primaryHidden

The primary view controller is hidden.

case allVisible

The primary and secondary view controllers are displayed side-by-side onscreen.

case primaryOverlay

The primary view controller is layered on top of the secondary view controller, leaving the secondary view controller partially visible.