{"id":22192564,"url":"https://github.com/3sidedcube/attributedtext","last_synced_at":"2025-03-24T20:45:45.953Z","repository":{"id":39709715,"uuid":"377797487","full_name":"3sidedcube/AttributedText","owner":"3sidedcube","description":"Simple wrapper of NSAttributedString","archived":false,"fork":false,"pushed_at":"2023-08-01T11:34:43.000Z","size":84,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"develop","last_synced_at":"2025-01-30T01:22:40.288Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/3sidedcube.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-06-17T10:51:38.000Z","updated_at":"2021-11-05T19:55:18.000Z","dependencies_parsed_at":"2024-12-02T12:39:59.153Z","dependency_job_id":null,"html_url":"https://github.com/3sidedcube/AttributedText","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3sidedcube%2FAttributedText","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3sidedcube%2FAttributedText/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3sidedcube%2FAttributedText/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3sidedcube%2FAttributedText/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/3sidedcube","download_url":"https://codeload.github.com/3sidedcube/AttributedText/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245351757,"owners_count":20601090,"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":[],"created_at":"2024-12-02T12:26:29.366Z","updated_at":"2025-03-24T20:45:45.933Z","avatar_url":"https://github.com/3sidedcube.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AttributedText\n\nSimple wrapper of `NSAttributedString`. Importantly, `AttributedText` does not take range into account; it wraps a dictionary of attributes to be set over a *fixed* range.\nSo, to achieve various attributes at different ranges, it's common to append many `AttributedText`s to an `NSMutableAttributedString`. Or even just using the native `NSAttributedString`.\n\nCurrently supported properties which map to `NSAttributedString.Key` (See file `AttributedText+Attributes`):\n\n* `font` (key: `.font`)\n* `textColor` (key: `.foregroundColor`)\n* `textBackgroundColor` (key: `.backgroundColor`)\n* `letterSpacing` (key: `.kern`)\n* `underlineStyle` (key: `.underlineStyle`)\n* `link` (key: `.link`)\n* `textAlignment` (key: `.paragraphStyle` - `.alignment`)\n* `lineBreakMode` (key: `.paragraphStyle` - `.lineBreakMode`)\n* `lineHeight` (key: `.paragraphStyle` - `.lineHeightMultiple` \u0026 `.lineSpacing`)\n\n`text` is a stored property as it doesn't have corresponding `NSAttributedString.Key` like the others. \n\n## Warning:\nAn `NSAttributedString` with empty text has no attributes (because it has no range).\n\n## Notes:\nThis framework was previously called `AttributedString` until iOS 15 when Apple released their own [AttributedString](https://developer.apple.com/documentation/foundation/attributedstring). As a result, this framework was renamed to `AttributedText` to prevent naming conflicts.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3sidedcube%2Fattributedtext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F3sidedcube%2Fattributedtext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3sidedcube%2Fattributedtext/lists"}