<!--
{
  "availability" : [
    "iOS: 14.5.0 -",
    "iPadOS: 14.5.0 -",
    "macCatalyst: 14.5.0 -",
    "tvOS: 14.5.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UISplitViewController/DisplayModeButtonVisibility-swift.enum/automatic",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@UISplitViewControllerDisplayModeButtonVisibility@UISplitViewControllerDisplayModeButtonVisibilityAutomatic"
  },
  "title" : "UISplitViewController.DisplayModeButtonVisibility.automatic"
}
-->

# UISplitViewController.DisplayModeButtonVisibility.automatic

A constant that automatically determines the visibility of the display mode button.

```
case automatic
```

## Discussion

With this behavior, setting [`presentsWithGesture`](/documentation/UIKit/UISplitViewController/presentsWithGesture) to <doc://com.apple.documentation/documentation/Swift/false> hides the display mode button. This behavior is the default.

---

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)