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?



Accepted Reply

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

Replies

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