我想将光标设置到 TextField 的末尾,如下所示 image1
这是我想要的image2
有人能给建议吗?
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?
只有这一次:)
Form { HStack { Text("User Name") TextField("user",text: $user) .multilineTextAlignment(.trailing) } HStack { Text("Password") TextField("password",text: $password) .multilineTextAlignment(.trailing) } }
only this time :)
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(1)
只有这一次:)
only this time :)