0

So I have my watch app asking for text input as is below but it gets this error that makes NO sense!

enter image description here

I was hoping someone could help me out with this? Thanks in advance!

Nerdy Lime Apps
  • 331
  • 2
  • 5
  • 18

1 Answers1

0

This is the definition according to the documentation:

func presentTextInputControllerWithSuggestions(_ suggestions: [String]?,
                          allowedInputMode inputMode: WKTextInputMode,
                                completion completion: ([AnyObject]?) -> Void)

The problem seems to be in your last parameter which is String -> Void. You get there [AnyObject]? not String.

User
  • 31,811
  • 40
  • 131
  • 232