Last active
August 31, 2017 11:24
-
-
Save hashaam/836d5b67a1d42343376c39d55e9ff1fb to your computer and use it in GitHub Desktop.
Using UIWindow Presentation Context
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://hashaam.com/2017/08/31/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