Closed rayastar closed 4 years ago
How change default green color to system blue? code below doesn't work:
let imageView = UIImage(named: "random-20") imageView?.withTintColor(UIColor.systemBlue)
actionButton.addItem(title: "title", image: imageView!.withRenderingMode(.alwaysTemplate)) { item in // do something }
You can set buttonColor like so
buttonColor
actionButton.buttonColor = .red
See here for a full example.
How change default green color to system blue? code below doesn't work:
let imageView = UIImage(named: "random-20") imageView?.withTintColor(UIColor.systemBlue)