Home > Software engineering >  Return Key type iOS 14 for SwiftUi custom Text Field
Return Key type iOS 14 for SwiftUi custom Text Field

Time:03-18

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)
  • Related