Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Using UIWindow Presentation Context
if let delegate = UIApplication.shared.delegate, let window = delegate.window, let viewController = window?.presentationContext() {
// perform action on viewController
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment