Skip to content

Instantly share code, notes, and snippets.

@aqubi
Last active June 1, 2020 15:57
Show Gist options
  • Save aqubi/7bd5f986e584c8bfb164c1add786403a to your computer and use it in GitHub Desktop.
Save aqubi/7bd5f986e584c8bfb164c1add786403a to your computer and use it in GitHub Desktop.
override func viewWillAppear(_ animated: Bool) {
if let split = splitViewController {
self.clearsSelectionOnViewWillAppear = split.isCollapsed
}
super.viewWillAppear(animated)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment