{"id":32148633,"url":"https://github.com/pelagornis/swift-builder","last_synced_at":"2026-02-21T03:02:21.405Z","repository":{"id":163586961,"uuid":"638900884","full_name":"pelagornis/swift-builder","owner":"pelagornis","description":"Builder Patterns for Flexible Syntax in Swift.","archived":false,"fork":false,"pushed_at":"2025-05-14T04:54:10.000Z","size":332,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-13T00:51:44.488Z","etag":null,"topics":["builder-design-pattern","builder-pattern","macro","pelagornis","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/pelagornis.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-05-10T10:49:12.000Z","updated_at":"2025-07-23T06:46:03.000Z","dependencies_parsed_at":"2025-12-12T02:05:27.018Z","dependency_job_id":null,"html_url":"https://github.com/pelagornis/swift-builder","commit_stats":null,"previous_names":["pelagornis/swift-builder","pelagornis/builder"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/pelagornis/swift-builder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pelagornis%2Fswift-builder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pelagornis%2Fswift-builder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pelagornis%2Fswift-builder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pelagornis%2Fswift-builder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pelagornis","download_url":"https://codeload.github.com/pelagornis/swift-builder/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pelagornis%2Fswift-builder/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29658168,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T16:33:43.953Z","status":"ssl_error","status_checked_at":"2026-02-20T16:33:43.598Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["builder-design-pattern","builder-pattern","macro","pelagornis","swift"],"created_at":"2025-10-21T09:01:38.468Z","updated_at":"2026-02-21T03:02:21.389Z","avatar_url":"https://github.com/pelagornis.png","language":"Swift","readme":"# Builder\n\n![Official](https://badge.pelagornis.com/official.svg)\n![SPM](https://img.shields.io/badge/SPM-compatible-brightgreen.svg)\n![Swift](https://img.shields.io/badge/Swift-5.9-orange.svg)\n[![License](https://img.shields.io/github/license/pelagornis/swift-builder)](https://github.com/pelagornis/swift-builder/blob/main/LICENSE)\n![Platform](https://img.shields.io/badge/platforms-iOS%2013.0%7C%20tvOS%2013.0%7C%20macOS%2010.15%7C%20watchOS%206.0-red.svg)\n\nBuilder Patterns for Flexible Syntax in Swift\n\n## Installation\nBuilder was deployed as Swift Package Manager. Package to install in a project. Add as a dependent item within the swift manifest.\n```swift\nlet package = Package(\n    ...\n    dependencies: [\n        .package(url: \"https://github.com/pelagornis/swift-builder.git\", from: \"1.1.0\")\n    ],\n    ...\n)\n```\n\nThen import the Builder from thr location you want to use.\n```swift\nimport Builder\n```\nAnd then adding the product to any target that needs access to the library:\n\n```swift\n.product(name: \"Builder\", package: \"swift-builder\"),\n```\n\n\n## Documentation\nThe documentation for releases and ``latest`` are available here:\n- [``latest``](https://pelagornis.github.io/swift-builder/latest/documentation/builder)\n\n\n## Using\nInitializer UIView with ``Builder``\n\n```swift\nlet view = UIView()\n    .builder()\n    .translatesAutoresizingMaskIntoConstraints(false)\n    .backgroundColor(.systemBlue)\n    .build()\n```\n\nThis is equivalent to\n\n```swift\nlet view: UIView = {\n    let view = UIView()\n    view.translatesAutoresizingMaskIntoConstraints = false\n    view.backgroundColor(.systemBlue)\n    return view\n}()\n```\n\nWant to use with your own types? Just make extensions.\n\n```swift\nextension MyType: Buildable {}\n\nlet instance = MyType()\n    .builder()\n    .property(\"some value\")\n    .build()\n```\n\n## Support Macros\n`@Builder` macro is supported.\n\n```swift\n@Builder\nstruct Pelagornis {\n    var libraryName: String?\n}\n```\n\n## License\n**Builder** is under MIT license. See the [LICENSE](LICENSE) file for more info.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpelagornis%2Fswift-builder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpelagornis%2Fswift-builder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpelagornis%2Fswift-builder/lists"}