Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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