{"id":20023207,"url":"https://github.com/carson-katri/attributedstringbuilder","last_synced_at":"2025-07-22T06:05:31.233Z","repository":{"id":63906744,"uuid":"199186803","full_name":"carson-katri/AttributedStringBuilder","owner":"carson-katri","description":"A DSL for creating NSAttributedStrings","archived":false,"fork":false,"pushed_at":"2019-07-27T16:11:20.000Z","size":4,"stargazers_count":24,"open_issues_count":2,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-25T16:03:29.835Z","etag":null,"topics":["functionbuilder","nsattributedstring","swift5-1"],"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/carson-katri.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}},"created_at":"2019-07-27T16:09:00.000Z","updated_at":"2024-11-19T20:09:23.000Z","dependencies_parsed_at":"2022-11-28T22:48:10.000Z","dependency_job_id":null,"html_url":"https://github.com/carson-katri/AttributedStringBuilder","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/carson-katri/AttributedStringBuilder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carson-katri%2FAttributedStringBuilder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carson-katri%2FAttributedStringBuilder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carson-katri%2FAttributedStringBuilder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carson-katri%2FAttributedStringBuilder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/carson-katri","download_url":"https://codeload.github.com/carson-katri/AttributedStringBuilder/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carson-katri%2FAttributedStringBuilder/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266437369,"owners_count":23928235,"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-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["functionbuilder","nsattributedstring","swift5-1"],"created_at":"2024-11-13T08:45:30.235Z","updated_at":"2025-07-22T06:05:31.203Z","avatar_url":"https://github.com/carson-katri.png","language":"Swift","readme":"# AttributedStringBuilder\n\nA DSL for creating an `NSAttributedString`. Original created to demonstrate function builders [here](https://medium.com/@carson.katri/create-your-first-function-builder-in-5-minutes-b4a717390671).\n\nExample:\n\n```swift\nNSAttributedString {\n  \"Hello \"\n    .foregroundColor(.blue)\n  \"World\"\n    .background(.orange)\n    .underline(.red, style: .thick)\n}\n```\n\n### Installation\nYou can install it via the Swift Package Manager in Xcode 11.\n\nGo to File \u003e Swift Packages \u003e Add Package Dependency...\n\nIn the text field paste the following: `https://github.com/carson-katri/AttributedStringBuilder`.\n\n### Documentation\n\nAvailable modifiers:\n\n* `foregroundColor`\n* `background`\n* `underline`\n* `font`\n* `shadow`\n\nFeel free to add any that're missing.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarson-katri%2Fattributedstringbuilder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarson-katri%2Fattributedstringbuilder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarson-katri%2Fattributedstringbuilder/lists"}