mnbayan / AutocompleteTextfieldSwift

Simple and straightforward sublass of UITextfield to manage string suggestions
MIT License
290 stars 66 forks source link

.onTextChange error (Invalid conversion from throwing function of type...) #41

Closed cnpetrich closed 8 years ago

cnpetrich commented 8 years ago

When using .onTextChange I receive an error on this line: {[weak self] text in

The error is: Invalid conversion from throwing function of type '(_) throws -> ()' to non-throwing function type '(String) -> ()'

For the life of me I can't figure out how to get rid of this.

cnpetrich commented 8 years ago

Nevermind, it was related to some code inside my if statement. Thanks!