I\'ve a UIButton and I\'ve created an extension to add background color for different state.
UIButton
I\'m using the following code:
I found the issue, UIButton was set to System.I simply changed it to Custom, it started working as expected.