{"id":19773920,"url":"https://github.com/badoo/hyperlabel","last_synced_at":"2025-09-20T10:03:04.479Z","repository":{"id":45130180,"uuid":"181036577","full_name":"badoo/HyperLabel","owner":"badoo","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-24T08:51:20.000Z","size":80,"stargazers_count":17,"open_issues_count":1,"forks_count":3,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-04-30T18:38:00.557Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/badoo.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-12T15:35:50.000Z","updated_at":"2025-02-11T07:59:38.000Z","dependencies_parsed_at":"2024-11-12T05:11:35.318Z","dependency_job_id":"1a89c6ad-fa7e-40e9-a602-c8c7227c7cba","html_url":"https://github.com/badoo/HyperLabel","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/badoo/HyperLabel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badoo%2FHyperLabel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badoo%2FHyperLabel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badoo%2FHyperLabel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badoo%2FHyperLabel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/badoo","download_url":"https://codeload.github.com/badoo/HyperLabel/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badoo%2FHyperLabel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276078006,"owners_count":25581314,"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","status":"online","status_checked_at":"2025-09-20T02:00:10.207Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-12T05:11:31.802Z","updated_at":"2025-09-20T10:03:04.406Z","avatar_url":"https://github.com/badoo.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"HyperLabel\n==========\n\nHyperLabel is a UILabel replacement which suports adding links for arbitraray part of the text\n\nFeatures\n--------\n\n### UI Automation support\n\nHyperLabel supports setting custom `accessibilityIdentifier` for added links\n\n### VoiceOver\n\nAll added links will have proper description and will be accessible with VoiceOver\n  \n### No subclassing needed\n\nIf you already have a subclass of UILabel, you can add HyperLabel functionallity to it. Just by conform it to `HyperLabelProtocol` and call `initializeHyperLabel`\n\nUsage\n-----\n\n```swift\nlet label = HLHyperLabel()\n\n// Set additional attributes which will be applied for added links\nlabel.additionalLinkAttributes = [\n    NSAttributedString.Key.foregroundColor: UIColor.red,\n    NSAttributedString.Key.underlineStyle: NSUnderlineStyle.single.rawValue\n]\n\n// Set text\nlabel.text = \"Hello world!\"\n\n// Get range of the link\nlet linkRange = (text as NSString).range(of: \"world\")\n\n// Add handler for range\nlabel.addLink(withRange: linkRange) {\n    // On link press\n}\n```\n\nInstallation\n------------\n\n### Carthage\n\nAdd HyperLabel to your Cartfile:\n```\ngithub \"badoo/HyperLabel\"\n```\n\n### Manual\n\n1. Add as a submodule or [download](https://github.com/badoo/HyperLabel/archive/master.zip)\n2. Drag `HyperLabel.xcodeproj` inside of your project\n3. Add `HyperLabel.framework` to Target Dependencies\n4. Add `HyperLabel.framework` to Embedded Binaries\n\nLicense\n-------\n\nSource code is distributed under MIT license\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbadoo%2Fhyperlabel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbadoo%2Fhyperlabel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbadoo%2Fhyperlabel/lists"}