kuler90 / RKTagsView

Highly customizable iOS tags view [input, edit, dynamic, tag, token, field, NSTokenField]
MIT License
451 stars 58 forks source link

Automatically select newly entered tag #23

Closed n1schal closed 4 years ago

n1schal commented 5 years ago

How can this be done?

kuler90 commented 5 years ago

Hi, I think you can implement delegate method tagsViewDidChange(tagsView: RKTagsView) and compare current tags array with previous. Previous tags array should be cached somewhere. Then if count of current tags is bigger than count of previous tags, you can select tag by selectTag(at: index)