TagListView alternatives and similar libraries
Based on the "Tag" category.
Alternatively, view TagListView alternatives based on common mentions on social networks and blogs.
-
TTGTagCollectionView
Useful for showing text or custom view tags in a vertical or horizontal scrollable view and support Autolayout at the same time. It is highly customizable that most features of the text tag can be configured. 标签流显示控件,同时支持文字或自定义View -
RKTagsView
Highly customizable iOS tags view [input, edit, dynamic, tag, token, field, NSTokenField] -
PARTagPicker
This pod provides a view controller for choosing and creating tags in the style of wordpress or tumblr. -
TagCellLayout
Made in Swift - Tag layout for UICollectionView supporting 3 types of alignments - Left || Centre || Right
InfluxDB - Purpose built for real-time analytics at any scale.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of TagListView or a related project?
README
TagListView
Simple and highly customizable iOS tag list view, in Swift.
Supports Storyboard, Auto Layout, and @IBDesignable.
Usage
The most convenient 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.systemFont(ofSize: 24)
tagListView.alignment = .center // possible values are [.leading, .trailing, .left, .center, .right]
tagListView.minWidth = 57
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:
// ...
{
// ...
tagListView.delegate = self
// ...
}
func tagPressed(title: String, tagView: TagView, sender: TagListView) {
print("Tag pressed: \(title), \(sender)")
}
You can also customize a particular tag, or set tap handler for it by manipulating the TagView
object returned by addTag(_:)
:
let tagView = tagListView.addTag("blue")
tagView.tagBackgroundColor = UIColor.blueColor()
tagView.onTap = { tagView in
print("Don’t tap me!")
}
Be aware that if you update a property (e.g. tagBackgroundColor
) for a TagListView
, all the inner TagView
s will be updated.
Installation
Use CocoaPods:
pod 'TagListView', '~> 1.0'
Or Carthage:
github "ElaWorkshop/TagListView" ~> 1.0
Or drag TagListView folder into your project.
Older Swift Versions?
Currently, the master
branch is using Swift 5.
For Swift 4, use version 1.3.2 or swift-4 branch. For Swift 3, use version 1.2.0 or swift-3 branch. For Swift 2, use version 1.0.1 or swift-2.3 branch. For Swift 1.2, use version 0.2.
Contribution
Pull requests are welcome! If you want to do something big, please open an issue to let me know first.
License
MIT
*Note that all licence references and agreements mentioned in the TagListView README section above
are relevant to that project's source code only.