<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UISplitViewControllerDelegate/splitViewController(_:show:sender:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UISplitViewControllerDelegate(im)splitViewController:showViewController:sender:"
  },
  "title" : "splitViewController(_:show:sender:)"
}
-->

# splitViewController(_:show:sender:)

Asks the delegate if it will do the work of displaying a view controller in the primary position of the split view interface.

```
optional func splitViewController(_ splitViewController: UISplitViewController, show vc: UIViewController, sender: Any?) -> Bool
```

## Parameters

`splitViewController`

The split view controller whose primary view controller is being updated.

`vc`

The view controller being displayed in the primary position.

`sender`

The object that made the request.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if you handled the presentation of the view controller, or <doc://com.apple.documentation/documentation/Swift/false> if you want the split view controller to do it.

## Discussion

This delegate method only applies to classic split view interfaces. For more information, see [`Split view styles`](/documentation/UIKit/UISplitViewController#Split-view-styles).

When its [`show(_:sender:)`](/documentation/UIKit/UISplitViewController/show(_:sender:)) method is called, the split view controller calls this method to see if your delegate will handle the presentation of the specified view controller. If you implement this method and your implementation returns <doc://com.apple.documentation/documentation/Swift/true>, you are responsible for presenting the specified view controller in the primary position of the split view interface. The split view controller does nothing more to try to show the view controller.

If you don’t implement this method or if your implementation returns <doc://com.apple.documentation/documentation/Swift/false>, the split view controller presents the view controller.

---

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)