SlackTextViewController icon indicating copy to clipboard operation
SlackTextViewController copied to clipboard

How to hide keyboard autocompletion?

Open Amefuri opened this issue 9 years ago • 1 comments

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

Amefuri avatar Oct 26 '16 08:10 Amefuri

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.

dzenbot avatar Oct 26 '16 23:10 dzenbot