SCLAlertView-Swift icon indicating copy to clipboard operation
SCLAlertView-Swift copied to clipboard

How to change colour of button on click

Open yusuftor opened this issue 7 years ago • 0 comments

I want to do something like this:

myButton = alertView.addButton("Enable", backgroundColor: .white, textColor: .black) {
    myButton.backgroundColor = .green
}

but it won't let me. I also can't access the customBackgroundColor property of the button. How can I solve this, or is it not possible?

yusuftor avatar Feb 28 '18 15:02 yusuftor