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

# showsSecondaryOnlyButton

Specifies whether the secondary view controller shows a button to toggle to and from the secondary-only display mode.

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

## Discussion

This value only takes effect when the split view controller’s [`style`](/documentation/UIKit/UISplitViewController/style-swift.property) property is [`UISplitViewController.Style.tripleColumn`](/documentation/UIKit/UISplitViewController/Style-swift.enum/tripleColumn).

The default value of this property is <doc://com.apple.documentation/documentation/Swift/false>. If you set the value to <doc://com.apple.documentation/documentation/Swift/true>, the secondary view controller shows a button that lets a user toggle the display mode to and from [`UISplitViewController.DisplayMode.secondaryOnly`](/documentation/UIKit/UISplitViewController/DisplayMode-swift.enum/secondaryOnly).

---

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)