https://github.com/sanjaysinh-chauhan/ssctaglistview
Customizable iOS tag list view, in Swift.
https://github.com/sanjaysinh-chauhan/ssctaglistview
awesometopic cocoapods collectionview high-performance simple swift tag tagging taglistview tags
Last synced: 8 months ago
JSON representation
Customizable iOS tag list view, in Swift.
- Host: GitHub
- URL: https://github.com/sanjaysinh-chauhan/ssctaglistview
- Owner: sanjaysinh-Chauhan
- License: mit
- Created: 2017-11-27T09:29:39.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-07-07T15:37:54.000Z (almost 6 years ago)
- Last Synced: 2025-10-23T09:54:44.758Z (8 months ago)
- Topics: awesometopic, cocoapods, collectionview, high-performance, simple, swift, tag, tagging, taglistview, tags
- Language: Swift
- Homepage:
- Size: 2.52 MB
- Stars: 55
- Watchers: 5
- Forks: 17
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SSCTaglistView
> Simple customizable iOS tag list view, in Swift.
[![Swift Version][swift-image]][swift-url]
[![Build Status][travis-image]][travis-url]
[![License][license-image]][license-url]
[](https://img.shields.io/cocoapods/v/LFAlertController.svg)
[](http://cocoapods.org/pods/LFAlertController)
[](http://makeapullrequest.com)

## Features
- [x] Simple and highly customizable iOS tag list view, in Swift.
- [x] Supports @IBDesignable.
- [x] Adds array of tags to view.
- [x] Add single tag to list.
- [x] Add single tag to specific index.
- [x] Remove all tags from taglist view.
- [x] Remove tags from specific index.
- [x] Directly copy available tags from taglist view
- [x] Directly copy selected tags from taglist view.
- [x] Directly copy unselected tags from taglist view.
## Requirements
- iOS 10.0+
- Xcode 9.0
## Installation
#### CocoaPods
You can use [CocoaPods](http://cocoapods.org/) to install `SSCTaglistView` by adding it to your `Podfile`:
```ruby
platform :ios, '10.0'
use_frameworks!
pod 'SSCTaglistView'
```
To get the full benefits import `YourLibrary` wherever you import UIKit
``` swift
import UIKit
import SSCTaglistView
```
#### Manually
1. Download and drop ```TaglistCollection.swift``` ```TagCollectionCell.swift``` ```Theme.swift``` ```CloseButton.swift``` ```TagCollectionCell.xib``` in your project.
2. Congratulations!
## Usage example
Add view in storyboard and apply class TaglistCollection. Here tagListView is outlet from storyboard
```swift
import SSCTaglistView
```
### Create outlet of that view.
### Add single tags to view using
```swift
tagListView.appendTag(tagName: #Stringtagname)
```
### Add single tags to specific index
```swift
self.appendTag(tagName: #stringTagName, atIndex: #Index)
```
### Add array of tags to view using
```swift
tagListView.appendTag(tagNamelist: #arrayOfString)
```
### Remove all tags from view
```swift
tagListView.removeAllTags()
```
### Remove all tag from specific index
```swift
tagListView.removeTagAt(indexPath: #IndexOfTag)
```
### Copy all tags from taglistView
```swift
tagListView.copyAllTags() will return array of tags.
```
### Copy selected tags from taglistView.
```swift
tagListView.copySelectedTags() will return array of tags.
```
### Copy unselected tags from taglistView.
```swift
tagListView.copyUnselectedTags() will return array of tags.
```
## Contribute
We would love you for the contribution to **SSCTaglistView**, check the ``LICENSE`` file for more info.
## Meta
Distributed under the MIT license. See ``LICENSE`` for more information.
[https://github.com/sanjaysinh-Chauhan/SSCTaglistView](https://github.com/sanjaysinh-Chauhan)
[swift-image]:https://img.shields.io/badge/swift-4.0-orange.svg
[swift-url]: https://swift.org/
[license-image]: https://img.shields.io/badge/License-MIT-blue.svg
[license-url]: LICENSE
[travis-image]: https://img.shields.io/travis/dbader/node-datadog-metrics/master.svg?style=flat-square
[travis-url]: https://travis-ci.org/dbader/node-datadog-metrics
[codebeat-image]: https://codebeat.co/badges/c19b47ea-2f9d-45df-8458-b2d952fe9dad
[codebeat-url]: https://codebeat.co/projects/github-com-vsouza-awesomeios-com