bug: textColor on button changes when title is changed
daniel-dumortier opened this issue · 0 comments
daniel-dumortier commented
Describe the bug
In some cases, when you change the title of a UIKit VitaminButton, the text color of the title is set back to black.
Steps to reproduce
- Create a VitaminButton
- when you click on the button, change the title of the button, with the same value or a different
- see that the text color is randomly black
Expected behavior
Button'title color should remain the same when title changes
Screenshots
Here is an example with a PageViewController, and a primary VitaminButton (see Screenshots section).
Intended behaviour is :
- at each click, the pageViewController should go forward
- the button title can change at each step of the PageViewController
- the title of the button can also change when the PageViewController is swiped
On the video we can see that sometimes (apparently when we set the title with the same value), text color goes back to black
Device (please complete the following information):
- Model: N/A
- OS: iOS
- Version : tested on 16