Simple customizable iOS tag list view, in Swift.
- Simple and highly customizable iOS tag list view, in Swift.
- Supports @IBDesignable.
- Adds array of tags to view.
- Add single tag to list.
- Add single tag to specific index.
- Remove all tags from taglist view.
- Remove tags from specific index.
- Directly copy available tags from taglist view
- Directly copy selected tags from taglist view.
- Directly copy unselected tags from taglist view.
- iOS 10.0+
- Xcode 9.0
You can use CocoaPods to install SSCTaglistView
by adding it to your Podfile
:
platform :ios, '10.0'
use_frameworks!
pod 'SSCTaglistView'
To get the full benefits import YourLibrary
wherever you import UIKit
import UIKit
import SSCTaglistView
- Download and drop
TaglistCollection.swift
TagCollectionCell.swift
Theme.swift
CloseButton.swift
TagCollectionCell.xib
in your project. - Congratulations!
Add view in storyboard and apply class TaglistCollection. Here tagListView is outlet from storyboard
import SSCTaglistView
tagListView.appendTag(tagName: #Stringtagname)
self.appendTag(tagName: #stringTagName, atIndex: #Index)
tagListView.appendTag(tagNamelist: #arrayOfString)
tagListView.removeAllTags()
tagListView.removeTagAt(indexPath: #IndexOfTag)
tagListView.copyAllTags() will return array of tags.
tagListView.copySelectedTags() will return array of tags.
tagListView.copyUnselectedTags() will return array of tags.
We would love you for the contribution to SSCTaglistView, check the LICENSE
file for more info.
Distributed under the MIT license. See LICENSE
for more information.