<!--
{
  "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/UIViewController/separateSecondaryViewController(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIViewController(im)separateSecondaryViewControllerForSplitViewController:"
  },
  "title" : "separateSecondaryViewController(for:)"
}
-->

# separateSecondaryViewController(for:)

Called when a split view controller transitions to a regular-width size class.

```
func separateSecondaryViewController(for splitViewController: UISplitViewController) -> UIViewController?
```

## Parameters

`splitViewController`

The current split view controller.

## Return Value

The designated secondary view controller for the split view controller.

## Discussion

This method provides default behavior when you do not overwrite the [`splitViewController(_:separateSecondaryFrom:)`](/documentation/UIKit/UISplitViewControllerDelegate/splitViewController(_:separateSecondaryFrom:)) method. The previous secondary view controller is returned.

---

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)