Skip to content

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

Open
@SD10

Description

@SD10

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions