Skip to content

Instantly share code, notes, and snippets.

@antranapp
Last active August 29, 2015 14:20
Show Gist options
  • Save antranapp/439a0333730c08dffee8 to your computer and use it in GitHub Desktop.
Save antranapp/439a0333730c08dffee8 to your computer and use it in GitHub Desktop.
[iOS] Get current root view controller from appDelegate
if let currentViewController = self.window?.rootViewController {
// do something here
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment