You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Yes — UITextView+UIControl it works brilliantly — from TOMSuggestionBar's perspective we may need to handle UITextView as a special case, and check for the availability addTarget:action: with respondsToSelector: or something horrible like that.
There's no level of abstraction where UITextView fits in neatly, basically. :(
TOMSSuggestionBar doesn't work with
UITextViews
at the moment because it works with anyUIControl <UITextInput>
, whichUITextView
is not. In fact,UITextView
is a subclass ofUIScrollView <UITextInput>
.Problem: the suggestion bar normally observes the
UIControlEventEditingChanged
event, which is only officially emitted byUIControl
subclasses. Yet we wantTOMSSuggestionBar
to support all sorts of controls, likeUISearchBar
UITextView
UITextField
Looking at the class hierarchy their common superclass is
UIResponder
— this is too high up forUIControl
behaviours.Possible Solution: use https://github.com/andrewsardone/UITextView-UIControlThe text was updated successfully, but these errors were encountered: