-2

How to replace the color of a single button in the AlertSheet?

enter image description here

kayess
  • 3,384
  • 9
  • 28
  • 45
G.Rizvan
  • 39
  • 4

1 Answers1

0

If you are looking to use a destructive button you can change the style to destructive.

The below example will make delete red;

self.optionAlertController.addAction(UIAlertAction(title: "Delete", style: .destructive, handler: { (action: UIAlertAction!) in
CAH
  • 69
  • 3