79211898

Date: 2024-11-21 15:41:38
Score: 1
Natty:
Report link

Use TextField.init(text:prompt:axis:label:) to set a placeholder value for a text field + control the color of the placeholder text:

TextField(text: $email, axis: .horizontal, label: {
    Text("Email")
        .foregroundColor(.red)
})
.foregroundColor(.white)

Placeholder text: placeholder text

User entered text: user entered text

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
Posted by: spnkr