Git Product home page Git Product logo

ssctaglistview's Introduction

SSCTaglistView

Simple customizable iOS tag list view, in Swift.

Swift Version Build Status License CocoaPods Compatible Platform PRs Welcome

Alt text

Features

  • 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.

Requirements

  • iOS 10.0+
  • Xcode 9.0

Installation

CocoaPods

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

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

import SSCTaglistView

Create outlet of that view.

Add single tags to view using

    tagListView.appendTag(tagName: #Stringtagname)

Add single tags to specific index

    self.appendTag(tagName: #stringTagName, atIndex: #Index)

Add array of tags to view using

    tagListView.appendTag(tagNamelist: #arrayOfString)

Remove all tags from view

    tagListView.removeAllTags()

Remove all tag from specific index

    tagListView.removeTagAt(indexPath: #IndexOfTag)

Copy all tags from taglistView

    tagListView.copyAllTags() will return array of tags.

Copy selected tags from taglistView.

    tagListView.copySelectedTags() will return array of tags.

Copy unselected tags from taglistView.

    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

ssctaglistview's People

Contributors

bhavingupta avatar sanjaysinh-chauhan avatar sarthakshah31 avatar tejas-ardeshna avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ssctaglistview's Issues

Infinite loop when adding long string

Adding long string tag causes infinite loop. It also creates a high margin between the last added two tags.
p.s I changed flow from Horizontal to Vertical
shot

undeclared type 'TaglistCollection'

Hi,

I tried to use your TaglistView. I did all the steps from your instruction, CocoaPod install, import in Document, and create an outlet. But the outlet doesn't work. The error: "Use of undeclared type 'TaglistCollection'. Im very new in using extern files with cocoa Pods and don't know how to work with it exactly. Did I missed any step?

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.