I assume there must be a way you to use modifiers for every text field in a section without having to type them for each text field. Can the result of the example below be achieved with ForEach or something else that I'm not aware of?
Section() {
TextField("", text: $text1).keyboardType(.decimalPad).modifier(ClearButton(text: $text1))
TextField("", text: $text2).keyboardType(.decimalPad).modifier(ClearButton(text: $text2))
TextField("", text: $text3).keyboardType(.decimalPad).modifier(ClearButton(text: $text3))
TextField("", text: $text4).modifier(ClearButton(text: $text4))
}