I am trying to add the icons in action sheet of iOS app. I saw that apple has implemented such behavior in AppStore's action sheet, but hasn't provided any callback method to implement it ?
Any suggestions on how to implement it on iOS 12 Swift 4.x Xcode10.x ??
You can add image to UIAlertAction
with image
key:
let image = UIImage(named: "IMAGE_NAME")
var alertAction = UIAlertAction(title: "TITLE", style: .default, handler: nil)
alertAction.setValue(image, forKey: "image")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With