Is it possible to change “return” key to “done” on keyboard in 2020 with SwiftUI?
问题 I didn't find any link or guide to change the "return" key to "done" when keyboard open for TextField in SwiftUI. Is it possible now without customising UITextField? 回答1: The best way I found was to just add the package Introspect to your project. After doing so add in import Introspect anywhere in your project files. Then add one of their View Modifiers to your Textfield to achieve what you want. I believe this is what you want though ⤵ .introspectTextField { textfield in textfield