DBAlertController
DBAlertController copied to clipboard
A UIAlertController subclass that's independent of the view controller it's presented from. i.e. Adding UIAlertView's show() to UIAlertController.
This change is necessary with the latests Xcode and Swift Versions, please accept it on the upstream repo and also perhaps merge it back to the master branch.
Need this otherwise UIApplication.shared.keyWindow?.rootViewController is nil after dismissing alert. See also: https://github.com/dbettermann/DBAlertController/pull/4
DBAlertController can be used with more than just UIAlertController, but for this to work properly it requires setting the root window back to key and visible on dismiss. I'm using...
The keyboard will appear to have dismissed (which is normal behavior when presenting an alert), however, they keyboard will still be on the screen and invisible.