clearbuttonmode on dark mode

I was working with dark mode settings and stuck on one problem. On my app, I want a text field to be white when dark mode is on

Then I turn on a clear button and make it always visible

For some reason, the clear button is not visible in the text field but still works

I understand that the problem is with the image of a clear button, but I am not able to fix it. How can I without any problems leave the same clear button as it is on the light mode?



Answered by Claude31 in 390180022

For some reason, the clear button is not visible in the text field but still works

Most likely because it draws white on white


So, change the color:

https://stackoverflow.com/questions/27944781/how-to-change-the-tint-color-of-the-clear-button-on-a-uitextfield

Accepted Answer

For some reason, the clear button is not visible in the text field but still works

Most likely because it draws white on white


So, change the color:

https://stackoverflow.com/questions/27944781/how-to-change-the-tint-color-of-the-clear-button-on-a-uitextfield

clearbuttonmode on dark mode
 
 
Q