I am using a multiline text field that wraps the text vertically to new lines. Is there a way to adjust the padding for the wrapped lines, not including the first line? I am trying to have subsequent lines use a negative leading padding, or more generally, have them appear right under the Text("Word")
.
HStack(alignment: .top) {
Text("Word")
.foregroundColor(.black)
.padding(.top, 8)
TextField("", text: $PresentationManager.entryText, prompt: Text("required"), axis: .vertical)
.foregroundColor(.black)
.focused($isTextFieldFocused)
.background(Color.clear)
.padding(.top, 8)
.multilineTextAlignment(.leading)
}
In the image below, I am trying to get the second line of the wrapped text to have less padding while maintaining the positioning of the first line of the entry.
Text("Word")
View?