ElaWorkshop / TagListView

Simple and highly customizable iOS tag list view, in Swift.
MIT License
2.65k stars 493 forks source link

Accessories for the tags (besides X) #40

Open JacobSyndeo opened 8 years ago

JacobSyndeo commented 8 years ago

I'm specifically wondering about a + and - (which, in my case, are for following/unfollowing certain tags). I'm trying to replicate the tags shown in this webpage: img_1395

xhacker commented 8 years ago

We don’t currently have it, but this is something we’d like to implement. For now I guess you can use “+” and “-” (characters) as a workaround?

JacobSyndeo commented 8 years ago

Oh okay, I'll use the characters for now. Which property is that? (I'm not seeing it on the IBDesignable, at least.)

xhacker commented 8 years ago

What I meant is you can add the character in the tag title. E.g. tagListView.addTag("sketch +"). Currently there’s no way to use custom view/character as accessory view.

JacobSyndeo commented 8 years ago

Oh, of course! Sometimes the most clever workarounds are also the most simple. That should do for now. 😋

aleene commented 8 years ago

What is the rationale for implementing the edit accessory as a button? Why not just a string that will added when a tagView is removable? Tapping in a tagView can be intercepted in TagListView and subsequently removed.

myzcid commented 6 years ago

let the remove button as "open", I want to set a icon for the close button