Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InputTextView is broken when used with AutocompleteManager due to UITextView typing #10

Open
SD10 opened this issue Sep 18, 2018 · 0 comments
Labels
bug Something isn't working

Comments

@SD10
Copy link
Member

SD10 commented Sep 18, 2018

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 #8 (review)

Swift version: 4.0
MessageInputBar version: 0.2.2
Xcode version: 9.4
Installation Method: Carthage

@SD10 SD10 added the bug Something isn't working label Sep 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant