[ad_1]
I am simply attempting to set adjustsImageWhenDisabled = false. I get a deprecation warning however cannot discover a easy answer. I can consider workarounds myself however this code " adjustsImageWhenDisabled = false" is simply so easy and works.
My "picture" is simply a picture made out of a coloration utilizing UIGraphicsBeginImageContext. What I do now’s that I override isEnabled and on didSet I set backgroundColor if disabled in any other case I take advantage of setBackgroundImage(for:) in order that I get the highlighted impact when enabled.
And why does it not simply work to make use of setBackgroundImage(for:.disabled)?
[ad_2]