A Swift class that shows an UIAlertView or UIAlertController depending on iOS version.