Latest 0.1.2
Homepage https://github.com/anuradhss/SwiftHashTags
License MIT
Platforms ios 9.0
Authors

CI Status
Version
License
Platform

Language

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Demo

Requirements

Swift 4.2
iOS 9.0 or later

Installation

SwiftHashTags is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'SwiftHashTags','~>0.1.2'

How to use

import the library

import SwiftHashTags

Create SwiftHashTag View and Add Tags.

//MARK: Adding hashtags to SwiftHashTags
var hashtags: [SwiftHashTags] = []
let hashtag1 = SwiftHashTags(title: "hashtagone", id: 99) // you can add any amount of Tags
hashtags.append(hashtag1)

//MARK: Create SwiftHashTag View
let swifthashtags = SwiftHashTagsView()
swifthashtags.frame = CGRect(x: 10, y: 20, width: UIScreen.main.bounds.width - 20, height: UIScreen.main.bounds.height - 20) // you can give any size
swifthashtags.setHashTags(with: hashtags) // set your hash tags here
view.addSubview(swifthashtags)
swifthashtags.swifthashtagDelegate = self

SwiftHashTags Delegate methods

func selectedHashTag(title: String, id: Int) {
  // do your stuffs here
}

func unselectedHashTag(title: String, id: Int) {
  // do your stuffs here
}

Features

1.Hide or show Verticle Scroll Indicator

swifthashtags.showverticalScoller = true

Author

Anuradh caldera, [email protected]

License

SwiftHashTags is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "SwiftHashTags",
    "version": "0.1.2",
    "summary": "Easy Scrollable HashTags in Swift",
    "swift_version": "4.2",
    "description": "By using this pod, you can directly implement Scrollable HashTags with Swift.",
    "homepage": "https://github.com/anuradhss/SwiftHashTags",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Anuradh Caldera": "[email protected]"
    },
    "source": {
        "git": "https://github.com/anuradhss/SwiftHashTags.git",
        "tag": "0.1.2"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "SwiftHashTags/Classes/**/*"
}

Pin It on Pinterest

Share This