Skip to content

Instantly share code, notes, and snippets.

@RenGate
Created September 2, 2020 18:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RenGate/cc74a942153f79cccb0c96c7585244a9 to your computer and use it in GitHub Desktop.
Save RenGate/cc74a942153f79cccb0c96c7585244a9 to your computer and use it in GitHub Desktop.
func splitViewController(_ splitViewController: UISplitViewController, collapseSecondary secondaryViewController: UIViewController, onto primaryViewController: UIViewController) -> Bool {
if let navigationController = secondaryViewController as? EEHNavigationController, navigationController.topViewController is PlaceholderViewController {
return true
} else {
return false
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment