{"id":20721686,"url":"https://github.com/chicio/dependencies-injection-swift-example","last_synced_at":"2026-07-04T06:02:21.054Z","repository":{"id":83568149,"uuid":"248485500","full_name":"chicio/Dependencies-injection-swift-example","owner":"chicio","description":"A simple dependencies injection container I created for my blog post \"How to: create your SUPER simple dependency injector framework in Swift\" :bird::iphone:","archived":false,"fork":false,"pushed_at":"2021-12-28T08:34:31.000Z","size":13,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-28T09:35:46.833Z","etag":null,"topics":["dependency-injection","generics","hashable-dictionaries","metaprogramming","swift"],"latest_commit_sha":null,"homepage":"https://www.fabrizioduroni.it/blog/","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/chicio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2020-03-19T11:27:00.000Z","updated_at":"2024-03-06T20:03:38.000Z","dependencies_parsed_at":"2023-07-08T19:16:21.077Z","dependency_job_id":null,"html_url":"https://github.com/chicio/Dependencies-injection-swift-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chicio/Dependencies-injection-swift-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chicio%2FDependencies-injection-swift-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chicio%2FDependencies-injection-swift-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chicio%2FDependencies-injection-swift-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chicio%2FDependencies-injection-swift-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chicio","download_url":"https://codeload.github.com/chicio/Dependencies-injection-swift-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chicio%2FDependencies-injection-swift-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35111429,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-04T02:00:05.987Z","response_time":113,"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":["dependency-injection","generics","hashable-dictionaries","metaprogramming","swift"],"created_at":"2024-11-17T03:28:59.470Z","updated_at":"2026-07-04T06:02:21.021Z","avatar_url":"https://github.com/chicio.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dependencies-injection-swift-example\n\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/chicio/dependencies-injection-swift-example/blob/master/LICENSE.md)\n[![Supported platform](https://img.shields.io/badge/platforms-iOS-orange.svg)](https://img.shields.io/badge/platforms-iOS-orange.svg)\n\nA sample project for my blog post post [How to: create your SUPER simple dependency injector framework in Swift](https://www.fabrizioduroni.it/2020/03/19/dependecy-injection-swift/), where I show how to create a simple dependecies injector container in Swift. \n\n### Description\n\nThis is a quote from the post:\n\n\u003e ...We have a lot of alternatives from which we can choose: [Swinject](https://github.com/Swinject/Swinject \"dependecies injection swift Swinject\"), [Weaver](https://github.com/scribd/Weaver \"dependecies injection swift Weaver\") etc. This frameworks come with a lot of features like: object graph construction, injection with property wrappers, instance persistence etc. This are all useful feature, but if your needs are very limited (just a dependecies container register/resolver using protocol and classes) the previous frameworks gives you just a big overhead and complexity on you code. This is why for my recent project I tried to write my own very simple dependencies injector container by leveraging the power of Swift Metatype and the Hashable protocol. Let's go and see the how I created it...\n\nClick on the link above to read the posts.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchicio%2Fdependencies-injection-swift-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchicio%2Fdependencies-injection-swift-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchicio%2Fdependencies-injection-swift-example/lists"}