Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Commit a0a6525

Browse files
committed
New post 🚀
1 parent 34a38fc commit a0a6525

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_drafts/2020-03-25-dependecy-injection-swift.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ authors: [fabrizio_duroni]
1616

1717
---
1818

19-
XXX
19+
The open source Swift world is full of useful framework. You can find almost everything you need (there are [rare cases where you need to write something that still doesn't exist](XXX id3 tag editor) out there). Anyway, a lot of the frameworks and libraries you will find out do more than you need. See for example the world of the dependecies injection framework. 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 :smirk:.
2020

2121
#### Implementation
2222

0 commit comments

Comments
 (0)