79185061

Date: 2024-11-13 13:23:17
Score: 1
Natty:
Report link

Some of the above seems kind of hacky and has changed. You can do the following and it will work.

TextField("Placeholder", text: $text)
  .onAppear {
    UITextField.appearance().clearButtonMode = .whileEditing
  }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Marco Espinoza