ElaWorkshop / TagListView

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

Remove Button Not Appearing #213

Open fellowProgrammer opened 5 years ago

fellowProgrammer commented 5 years ago

I added a tagListView onto my View Controller and set Enable Remove Button to "Default". I want to be able to show the remove button when my user presses a button and by default it should be off. When I set tagListView.enableRemoveButton = true in my code, the tag expands to have enough space to display the text and the remove button, but the remove button does not show up. When I click it where it is supposed to be it removes the tag but the icon seems to be invisible (refer to the image below). I have set the line color to white (which should show up against my blue tag background), the line width to 1, and the icon size to 9 (See code below). How do I get the remove button to appear?

Code:

tagListView.enableRemoveButton = true tagListView.removeIconLineWidth = 1 tagListView.removeButtonIconSize = 9 tagListView.removeIconLineColor = UIColor.white.withAlphaComponent(1)

Image:

screen shot 2019-01-13 at 12 09 29 pm
aditya5045 commented 5 years ago

@fellowProgrammer I too had the same problem, but keep on experimenting with the Remove line color. It became visible