Skip to content

Instantly share code, notes, and snippets.

@JeremyXue77
Created December 23, 2019 04:06
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 JeremyXue77/b8e8187084a214591d4345a5234316b2 to your computer and use it in GitHub Desktop.
Save JeremyXue77/b8e8187084a214591d4345a5234316b2 to your computer and use it in GitHub Desktop.
func dismissToRootVC() {
self.view.window!.rootViewController?.dismiss(animated: false, completion: nil)
}
@JeremyXue77
Copy link
Author

func dismissToRootVC(animated: Bool) {
  self.view.window!.rootViewController?.dismiss(animated: animated, completion: nil)
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment