'Change color for titleKey in TextField with SwiftUI for DarkMode

The color of the text field is set by the designer, but in dark mode the name of the field disappears - titleKey. Any ideas to fix this? It looks weird in dark mode

I see two options, but I do not know how to implement.

  1. Change color for titleKey
  2. Disable all changes for Dark mode

Do you have any ideas?

light mode dark mode



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source