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 true, the split view controller installs a gesture recognizer for changing the current display mode. In a column-style split view interface, the gesture is interactive.
In a classic split view interface, 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.
When this property is false, the split view controller doesn’t install a gesture recognizer for changing the display mode. The split view controller also doesn’t display a button to change the display mode.
The default value of this property is true.