<!--
{
  "availability" : [
    "iOS: 5.1.0 -",
    "iPadOS: 5.1.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UISplitViewController/presentsWithGesture",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UISplitViewController(py)presentsWithGesture"
  },
  "title" : "presentsWithGesture"
}
-->

# presentsWithGesture

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

```
var presentsWithGesture: Bool { get set }
```

## Discussion

When this property is <doc://com.apple.documentation/documentation/Swift/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:)`](/documentation/UIKit/UISplitViewControllerDelegate/targetDisplayModeForAction(in:)) method. If that method returns the [`UISplitViewController.DisplayMode.automatic`](/documentation/UIKit/UISplitViewController/DisplayMode-swift.enum/automatic) mode, the split view controller applies the most appropriate display mode given its current configuration and size class.

When this property is <doc://com.apple.documentation/documentation/Swift/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 <doc://com.apple.documentation/documentation/Swift/true>.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)