-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
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
UISearchBarUITextViewUITextField
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels