Hello everyone, I found a way to change the submit button of the keyboard, using .submitLabel
(.send)
; for instance, on a TextField element it would look like this:
TextField("PlaceholderText", text: $placeholderVariable).submitLabel( .send)
I also found the documentation here where it shows how many options one can choose from for the submit button’s label.
What I see in the documentation, is that there is no “Add” label - which I would like to use - and that submitLabel
takes a SubmitLabel
type.
Does anyone know how I can extend the SubmitLabel struct to create a new SubmitLabel
type that will have “Add” as label for the submit button of the keyboard?
Thank you!