{"id":18555446,"url":"https://github.com/k-lpmg/tagging","last_synced_at":"2026-04-06T03:35:11.197Z","repository":{"id":56923659,"uuid":"138413379","full_name":"k-lpmg/Tagging","owner":"k-lpmg","description":"A TextView that provides easy to use tagging feature for Mention or Hashtag","archived":false,"fork":false,"pushed_at":"2020-08-27T21:29:48.000Z","size":4059,"stargazers_count":123,"open_issues_count":7,"forks_count":20,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-09T12:16:24.891Z","etag":null,"topics":["hashtag","ios","mention","swift","textview"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/k-lpmg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-23T15:42:02.000Z","updated_at":"2025-02-19T11:53:20.000Z","dependencies_parsed_at":"2022-08-21T05:20:25.278Z","dependency_job_id":null,"html_url":"https://github.com/k-lpmg/Tagging","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-lpmg%2FTagging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-lpmg%2FTagging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-lpmg%2FTagging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-lpmg%2FTagging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/k-lpmg","download_url":"https://codeload.github.com/k-lpmg/Tagging/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248129925,"owners_count":21052664,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hashtag","ios","mention","swift","textview"],"created_at":"2024-11-06T21:26:41.975Z","updated_at":"2026-04-06T03:35:11.165Z","avatar_url":"https://github.com/k-lpmg.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tagging\n[![Build Status](https://travis-ci.org/k-lpmg/Tagging.svg?branch=master)](https://travis-ci.org/k-lpmg/Tagging)\n![Swift](https://img.shields.io/badge/Swift-5.0-orange.svg)\n[![Cocoapods](https://img.shields.io/cocoapods/v/Tagging.svg?style=flat)](https://cocoapods.org/pods/Tagging)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n\nA TextView that provides easy to use tagging feature for Mention or Hashtag.\n\n\n## Introduction\n[Tagging](https://github.com/k-lpmg/Tagging) is a UIView that encloses a TextView that contains an algorithm for tagging.\nIf you're worried about implementing `Mention` or `Hashtag` in your app, you can easily implement them using the library.\n\n![tagging](https://user-images.githubusercontent.com/15151687/43359597-9be98a16-92df-11e8-8bda-4719502bd907.gif)\n\n\n## Getting Started\n\n1. Add `Tagging` to the view as a subview.\n\n2. Set the list that you want to tag and tag symbol to `Tagging`.\n```swift\ntagging.symbol = \"#\"\ntagging.tagableList = [\"DOOMFIST\", \"GENJI\", \"MCCREE\", \"PHARAH\", \"REAPER\", \"SOLDIER:76\", \"SOMBRA\", \"TRACER\", \"BASTION\", \"HANZO\", \"JUNKRAT\", \"MEI\", \"TORBJORN\", \"WIDOWMAKER\", \"D.VA\", \"ORISA\", \"REINHARDT\", \"ROADHOG\", \"WINSTON\", \"ZARYA\", \"ANA\", \"BRIGITTE\", \"LUCIO\", \"MERCY\", \"MOIRA\", \"SYMMETRA\", \"ZENYATTA\"]\n```\n\n3. Implement TaggingDataSource on the class that added the `Tagging`.\n```swift\ntagging.dataSource = self\n```\n\n3. Get tagable list and tagged list through `TaggingDataSource`.\n```swift\nfunc tagging(_ tagging: Tagging, didChangedTagableList tagableList: [String]) {\n    matchedList = tagableList\n}\n\nfunc tagging(_ tagging: Tagging, didChangedTaggedList taggedList: [TaggingModel]) {\n    self.taggedList = taggedList\n}\n```\n\n\n## Usage\n\n#### Tagging Property\n\n| Property | Type | Description |\n| --- | --- | --- |\n| `cornerRadius` | `CGFloat` | Corner radius |\n| `borderWidth` | `CGFloat` | Border width |\n| `borderColor` | `CGColor` | Border color |\n| `textInset` | `UIEdgeInsets` | Text inset |\n| `backgroundColor` | `UIColor` | Background color |\n| `symbol` | `String` | Tagging symbol |\n| `tagableList` | `[String]` | Tagable list |\n| `defaultAttributes` | `[NSAttributedStringKey: Any]` | Default attributes for all range attributedText of Textview |\n| `symbolAttributes` | `[NSAttributedStringKey: Any]` | Aattributes for symbol text |\n| `taggedAttributes` | `[NSAttributedStringKey: Any]` | Attributes for tagged text |\n\n\n## Installation\n\n#### CocoaPods (iOS 8+)\n\n```ruby\nplatform :ios, '8.0'\nuse_frameworks!\n\ntarget '\u003cYour Target Name\u003e' do\n    pod 'Tagging'\nend\n```\n\n#### Carthage (iOS 8+)\n\n```ruby\ngithub \"k-lpmg/Tagging\"\n```\n\n\n## LICENSE\n\nThese works are available under the MIT license. See the [LICENSE][license] file\nfor more info.\n\n[license]: LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk-lpmg%2Ftagging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fk-lpmg%2Ftagging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk-lpmg%2Ftagging/lists"}