I've noticed that a default, standard, plain-style button doesn't provide a strong indication when it is pressed. For example, consider this plain-style button with its default settings. As you can see, it does not offer a clear visual indicator to show that it is currently being pressed.
When examining buttons provided by the OS, such as a photo picker, the visual effect when pressed is more obvious. Could you advise on how I can achieve a similar effect in my UIButton? Thank you.



You can simply config
setTitleColorfor each state withstyle == default. However, withPlain, these configurations do not work. So, you need to apply one of these approaches:1. Change style to
Default, then it will automatically work as expected2. Using new button's UIConfiguration API from iOS 15