{"id":2053,"url":"https://github.com/younatics/Highlighter","last_synced_at":"2025-08-06T16:32:30.776Z","repository":{"id":41481028,"uuid":"90272891","full_name":"younatics/Highlighter","owner":"younatics","description":"🖍 Highlight whatever you want! ","archived":false,"fork":false,"pushed_at":"2021-05-12T18:55:01.000Z","size":4423,"stargazers_count":934,"open_issues_count":4,"forks_count":55,"subscribers_count":14,"default_branch":"master","last_synced_at":"2024-12-04T00:05:58.752Z","etag":null,"topics":["highlighter","pod","swift"],"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/younatics.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2017-05-04T14:28:07.000Z","updated_at":"2024-11-18T17:51:07.000Z","dependencies_parsed_at":"2022-09-21T10:03:12.774Z","dependency_job_id":null,"html_url":"https://github.com/younatics/Highlighter","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/younatics%2FHighlighter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/younatics%2FHighlighter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/younatics%2FHighlighter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/younatics%2FHighlighter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/younatics","download_url":"https://codeload.github.com/younatics/Highlighter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228923760,"owners_count":17992574,"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":["highlighter","pod","swift"],"created_at":"2024-01-05T20:16:02.273Z","updated_at":"2024-12-09T16:31:21.579Z","avatar_url":"https://github.com/younatics.png","language":"Swift","funding_links":[],"categories":["Libs","Text","Utilities and Extensions","Utility [🔝](#readme)"],"sub_categories":["Utility","Other free courses","Other Testing","Keychain"],"readme":"# Highlighter\n[![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome)\n[![Version](https://img.shields.io/cocoapods/v/Highlighter.svg?style=flat)](http://cocoapods.org/pods/Highlighter)\n[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://github.com/younatics/Highlighter/blob/master/LICENSE)\n[![Build Status](https://travis-ci.org/younatics/Highlighter.svg?branch=master)](https://travis-ci.org/younatics/Highlighter)\n[![Platform](https://img.shields.io/cocoapods/p/Highlighter.svg?style=flat)](http://cocoapods.org/pods/Highlighter)\n[![Swift 5.0](https://img.shields.io/badge/Swift-5.0-orange.svg?style=flat)](https://developer.apple.com/swift/)\n\n## Updates\nSee [CHANGELOG](https://github.com/younatics/Highlighter/blob/master/CHANGELOG.md) for details\n\n## Intoduction\n🖍 Highlight whatever you want! `Highlighter` will magically find UI objects such as `UILabel`, `UITextView`, `UITexTfield`, `UIButton` in your `UITableViewCell` or other `Class`.\n#### See [YNSearch](https://github.com/younatics/YNSearch) for advanced usage\n\n![demo](Images/Highlighter.gif)\n\n## Requirements\n\n`Highlighter` is written in Swift 5.0. Compatible with iOS 9.0+\n\n## Installation\n\n### Cocoapods\n\nHighlighter is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'Highlighter'\n```\n### Carthage\n```\ngithub \"younatics/Highlighter\"\n```\n\n## Usage\nYou can search any `UIView` using `view.highlight(text:normal:highlight:type:)` \nIt will search subviews for the provided `text` and highlight them using the attributes provided.\n\nTo search _all_ supported subview use:\n```swift\nview.highlight(text: \"Foo\", normal: normalAttributes, highlight: highlightedAttributes)\n```\n\nor you can limit the search to a single type using:\n```swift\nview.highlight(text: \"Foo\", normal: normalAttributes, highlight: highlightedAttributes, type: UIButton.self)\n```\n\n## Examples\n```swift\nfunc tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -\u003e UITableViewCell {\nguard let cell = self.ynSearchListViewDelegate?.ynSearchListView(tableView, cellForRowAt: indexPath) as? SearchViewCell else { return UITableViewCell() }\n            \n  if let changedText = ynSearchTextFieldText {\n    cell.highlight(text: changedText, normal: nil, highlight: [NSBackgroundColorAttributeName: UIColor.yellow])\n    }\n  return cell\n  }\n}\n```\n\n## References\n#### Please tell me or make pull request if you use this library in your application :) \n#### [MotionBook](https://github.com/younatics/MotionBook)\n#### [YNSearch](https://github.com/younatics/YNSearch)\n\n## Author\n[younatics](https://twitter.com/younatics)\n\u003ca href=\"http://twitter.com/younatics\" target=\"_blank\"\u003e\u003cimg alt=\"Twitter\" src=\"https://img.shields.io/twitter/follow/younatics.svg?style=social\u0026label=Follow\"\u003e\u003c/a\u003e\n\n## License\nHighlighter is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyounatics%2FHighlighter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyounatics%2FHighlighter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyounatics%2FHighlighter/lists"}