Reputation: 23
I want to set the cursor to the end of the TextField like this image1
This is want I have image2
Can anyone give advice?
Upvotes: 1
Views: 2102
Reputation: 12115
only this time :)
Form {
HStack {
Text("User Name")
TextField("user",text: $user)
.multilineTextAlignment(.trailing)
}
HStack {
Text("Password")
TextField("password",text: $password)
.multilineTextAlignment(.trailing)
}
}
Upvotes: 2