title: UIAlertController Cancel action background color
body: <pre><code>My question is similar to this where I couldn't find the answer.
  </code></pre>
  
  <p><a href="https://stackoverflow.com/questions/44601692/uialertcontroller-change-background-color-of-cancel-button-for-action-sheet">UIAlertController change background color of Cancel button for action sheet</a>
  and this <a href="https://stackoverflow.com/questions/44719277/alertcontroller-with-white-borders">alertController with white borders</a>
  I want the cancel button with actionStyle as "Cancel" and the background should be of different colour(By default it will be white). How to change the background colour of Cancel button. I don't want to change the actionStyle to default. Is there any other way to achieve this?
  This is my code</p>
  
  <pre><code>   func showActionSheet(_ changeAction: UIAlertAction) {
      let alertController = UIAlertController(title: "", message: "Are you sure".localize(), preferredStyle: .actionSheet)
      alertController.view.tintColor = UIColor.green
      if let subview = alertController.view.subviews.first, let alertContentView = subview.subviews.first {
          for innerView in alertContentView.subviews {
              innerView.backgroundColor = UIColor.red
          }
      }
      let cancelAction = UIAlertAction(title: "Cancel".localize(), style: .cancel) { _ in
          self.doneButton.isEnabled = true
      }
      alertController.addAction(changeAction)
      alertController.addAction(cancelAction)
      self.present(alertController, animated: true)
  }
  </code></pre>