Ios swift – How do I change a UIButton background color dynamically in UIKit when type is custom and corner style is capsule?
I am trying to change the background color of a custom button. This is the button I have declared in my storyboard: And this is the code I am using to set the background color: myButton.backgroundColor = UIColor.systemGreen And this…