The new UIButton.Configuration Api no subtle color transition

When I create a UIButton by new iOS15 api:

UIButton(configuration: .plain(), primaryAction: nil)

I lose the title fade transition that is provided by UIButton which created by old api:

UIButton(type: .system)

This is a feature or bug?

I think it is bad that system control lost the subtle animation. I hope Apple can fix it in the future version.

May I used it wrong? If I'm wrong, please help me fix it, thanks🙏

I lose the title fade transition

When should this transition occur ? When you tap the button ?

Did you consider using titleTextAttributesTransformer ?

It is a bit complex to use, here is a tutorial:

h t t p s : / / sarunw.com/posts/how-to-mark-custom-button-style-with-uibuttonconfiguration/

I have not had any luck using animation when using the new UIButton API made available for iOS 15 :(

Of course, I appreciate all the amazing work that's gone into iOS 15! However, it's the subtle animations like being able to change a UIButton's scale transform when a button is pressed, or animating a backgroundColor update that delights users. It's so close to being perfect and unfortunately, what may appear small is the reason I'll probably have to forgo adopting the new API for a long, long while.

The new UIButton.Configuration Api no subtle color transition
 
 
Q