slackhq / SlackTextViewController

⛔️**DEPRECATED** ⛔️ A drop-in UIViewController subclass with a growing text input view and other useful messaging features
https://slack.com/
MIT License
8.32k stars 1.08k forks source link

How to hide keyboard autocompletion? #541

Open Amefuri opened 7 years ago

Amefuri commented 7 years ago

using cocoapod version 1.9.5

I try to hide keyboard autocompletion with these code

textView.autocorrectionType = .No
textView.autocapitalizationType = .None

or

override func textViewDidBeginEditing(textView: UITextView) {
        textView.autocorrectionType = .No
        textView.autocapitalizationType = .None
}

but it both doesn't seem to work. I have no idea why. (See attach screenshot)

screen shot 2559-10-26 at 3 22 08 pm

dzenbot commented 7 years ago

This must be a bug in the library. We turn the auto correction on/off because of auto-completion feature. Look for slk_enableTypingSuggestionIfNeeded. The code doesn't assume auto correction was completely disabled, it should.