I saw some solutions on the internet where they have added an UIImageView to a UIAlertController, something like this -
var imageView = UIImageView(frame: CGRect(x: 100, y: 10, width: 40, height: 40))
imageView.image = yourImage
alert.view.addSubview(imageView)
Is this allowed? Coz Apple's documentation says the following -
"The UIAlertController class is intended to be used as-is and does not support subclassing. The view hierarchy for this class is private and must not be modified."