I'm trying to change the textcolor of Textfield (the text that user write) in SwiftUI. I'm trying with foregroundColor but it changes the placeholder's text color.
How do you do this in SwiftUI?
TextField($variable, placeholder: Text("a text"))
.foregroundColor(.green)