{"id":20475431,"url":"https://github.com/bielikb/textattributes","last_synced_at":"2026-04-23T03:33:32.209Z","repository":{"id":63905712,"uuid":"130214693","full_name":"bielikb/TextAttributes","owner":"bielikb","description":"TextAttributes provides type-safe API for setting text attributes for common UIKit components.","archived":false,"fork":false,"pushed_at":"2020-04-19T16:42:42.000Z","size":61,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-16T13:42:55.273Z","etag":null,"topics":["collection","color","font","ios","nsattributedstring","uikit","xcode"],"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/bielikb.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-19T12:48:25.000Z","updated_at":"2021-05-31T11:09:31.000Z","dependencies_parsed_at":"2022-11-28T19:25:59.542Z","dependency_job_id":null,"html_url":"https://github.com/bielikb/TextAttributes","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/bielikb%2FTextAttributes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bielikb%2FTextAttributes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bielikb%2FTextAttributes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bielikb%2FTextAttributes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bielikb","download_url":"https://codeload.github.com/bielikb/TextAttributes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242042193,"owners_count":20062363,"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":["collection","color","font","ios","nsattributedstring","uikit","xcode"],"created_at":"2024-11-15T15:15:59.597Z","updated_at":"2026-04-23T03:33:32.177Z","avatar_url":"https://github.com/bielikb.png","language":"Swift","readme":"# TextAttributes\nTextAttributes provides simple to use API for setting text attributes for common UIKit components.\n\nTextAttributes allow you to forget about chunky `NSAttributedString` API == you don't have to remember the [NSAttributedStringKey: Any] or it's consecutive string keys (`.font`, `.foregroundColor`, `.kern`) and rather focus directly on styling.\n\n# Usage\n\n```\nlet textAttributes = TextAttributes.attributes(font: Font.normalRegular, color: Color.white)\n```\n\n* UILabel\n```\nlabel.textAttributes = textAttributes\n```\n\n* UIButton\n```\nbutton.setAttributes(textAttributes, for: .normal)\n```\n        \n* UITextView\n```\ntextView.textAttributes = textAttributes\n```\n\n\n# Cocoapods\nAdd source\n\n```\nsource 'https://github.com/bielikb/TextAttributes.git'\n```\n\n```\npod 'TextAttributes', '~\u003e 1.0.1'\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbielikb%2Ftextattributes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbielikb%2Ftextattributes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbielikb%2Ftextattributes/lists"}