Instance Property

presentsWithGesture

Specifies whether a hidden view controller can be presented and dismissed using a swipe gesture.

Declaration

var presentsWithGesture: Bool { get set }

Discussion

When this property is set to true, the split view controller installs a gesture recognizer for changing the current display mode. The gesture recognizer applies the display mode returned by the delegate’s targetDisplayModeForAction(in:) method. If that method returns the UISplitViewController.DisplayMode.automatic mode, the split view controller applies the most appropriate display mode given its current configuration and size class.

The default value of this property is true.

See Also

Managing the Child View Controllers

var viewControllers: [UIViewController]

The array of view controllers managed by the receiver.