watchkitapple-watchswiftui

How do I use TextInput for WatchOS in swiftUI


Typically I would use presentTextInputControllerWithSuggestions() to show the TextInput field. But this isn't available in swiftUI because it is a function of WKInterfaceController. Do I have to use the WKInterfaceController for this? I couldn't find anything in the documentation.


Solution

  • This would be done through a TextField in SwiftUI.