I have an alert view that pops up when the user press the add button. How do i add an image to the alert view?
I added some code that i took reference from stack overfl
Yes, you can add a UIImageView as a subview to your alert view.
UIImageView
var imageView = UIImageView(frame: CGRect(x: 220, y: 10, width: 40, height: 40)) imageView.image = yourImage alert.view.addSubview(imageView)