<!--
{
  "availability" : [
    "iOS: 5.0.0 - 8.0.0",
    "iPadOS: 5.0.0 - 8.0.0",
    "macCatalyst: 13.1.0 - 13.1.0"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UISplitViewControllerDelegate/splitViewController(_:shouldHide:in:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UISplitViewControllerDelegate(im)splitViewController:shouldHideViewController:inOrientation:"
  },
  "title" : "splitViewController(_:shouldHide:in:)"
}
-->

# splitViewController(_:shouldHide:in:)

Asks the delegate whether the first view controller should be hidden for the specified orientation.

```
optional func splitViewController(_ svc: UISplitViewController, shouldHide vc: UIViewController, in orientation: UIInterfaceOrientation) -> Bool
```

## Parameters

`svc`

The split view controller that owns the first view controller.

`vc`

The first view controller in the array of view controllers.

`orientation`

The orientation being considered.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the view controller should be hidden in the specified orientation or <doc://com.apple.documentation/documentation/Swift/false> if it should be visible. If you do not implement this method, a value of <doc://com.apple.documentation/documentation/Swift/true> is assumed for portrait orientations and <doc://com.apple.documentation/documentation/Swift/false> is assumed for landscape orientations.

## Discussion

The split view controller calls this method only for the first child view controller in its array. The second view controller always remains visible regardless of the orientation.

Prior to iOS 5.0, the first view controller was always hidden in portrait orientations and always shown in landscape orientations. If you do not implement this method in your delegate object, that default behavior remains in effect.

---

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)