MessageInputBar
MessageInputBar copied to clipboard
InputTextView is broken when used with AutocompleteManager due to UITextView typing
What happened?
I created an AttachmentManager below and passed it my InputTextView.
let inputBar = MessageInputBar()
let manager = AttachmentManager(for: inputBar.inputTextView)
However, the property textView of AttachmentManager of is typed as UITextView. So the library's internals doesn't know any of the overriden methods of UITextView in the InputTextView class. This causes things like my placeholder text to never clear.
What did I expect to happen?
I expected that AttachmentManager respects the changes inInputTextView
Blame is https://github.com/MessageKit/MessageInputBar/pull/8#pullrequestreview-135034016
Swift version: 4.0 MessageInputBar version: 0.2.2 Xcode version: 9.4 Installation Method: Carthage