Skip to content

Support UITextViews #3

@hokster7

Description

@hokster7

TOMSSuggestionBar doesn't work with UITextViews at the moment because it works with any UIControl <UITextInput>, which UITextView is not. In fact, UITextView is a subclass of UIScrollView <UITextInput>.

Problem: the suggestion bar normally observes the UIControlEventEditingChanged event, which is only officially emitted by UIControl subclasses. Yet we want TOMSSuggestionBar to support all sorts of controls, like

  • UISearchBar
  • UITextView
  • UITextField

Looking at the class hierarchy their common superclass is UIResponder — this is too high up for UIControl behaviours.

Possible Solution: use https://github.com/andrewsardone/UITextView-UIControl

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions