I Know there is a submitLabel in iOS 15 where we can change return key type.
Is there any similar alternative for a Custom text Field in iOS 14 for SwiftUI?
CodePudding user response:
You may find .keyboardType in TextField helpful
CodePudding user response:
You can use the SwiftUIX package: https://github.com/SwiftUIX/SwiftUIX
CocoaTextField("Search", text: $searchText)
.returnKeyType(.search)
