[英]Add return key or Done button to `phonePad` keyboard type of TextField in SwiftUI
[英]How can I change the "Return" button of a textField keyboard to the blue "Done" button in SwiftUI?
我有這個文本字段:
TextField("Username", text: $username).textFieldStyle(PlainTextFieldStyle())
如何將其鍵盤返回按鈕更改為完成按鈕?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.