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
Simple and highly customizable iOS tag list view, in Swift.
Supports Storyboard, Auto Layout, and @IBDesignable.
Usage
The most convinient way is to use Storyboard. Drag a view to Storyboard and set Class to TagListView (if you use CocoaPods, also set Module to TagListView). Then you can play with the attributes in the right pane, and see the preview in real time thanks to @IBDesignable.
You can add tag to the tag list view, or set custom font and alignment through code:
tagListView.textFont =UIFont.systemFontOfSize(24)
tagListView.alignment =.Center // possible values are .Left, .Center, and .Right
tagListView.addTag("TagListView")
tagListView.addTags(["Add","two","tags"])
tagListView.insertTag("This should be the second tag", at:1)
tagListView.setTitle("New Title", at:6) // to replace the title a tag
tagListView.removeTag("meow") // all tags with title “meow” will be removed
tagListView.removeAllTags()
You can implement TagListViewDelegate to receive tag pressed event: