You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ ___
9
9
10
10
Sometimes during the app development process we need to replace instances of classes or actors we use in production code with instances that emulate their work e.g. tests, SwiftUI previews, demo apps etc.
11
11
12
-
Ususally that requires additional changes in the code that in turn opens up a whole new layer of errors. handlinge of theese errors is on your shoulders.
12
+
Ususally that requires additional changes in the code that in turn opens up a whole new layer of errors. handling of theese errors is on your shoulders.
13
13
14
14
Inject lets you express your intent in a way that enables compile-time checking that you have all the instances required for the production.
15
15
At the same time it let's you replace the instance on any object with a single line of code.
@@ -132,7 +132,7 @@ I'm saying you have to try it and decide for yourself and that's why:
132
132
133
133
- Thread safety using `@MainActor`
134
134
- Inject doesn't introduce a container instance.
135
-
- No need to register instance in a container, defininition of a compoted property with the instance instead.
135
+
- No need to register instance in a container, defininition of a computed property with the instance instead.
136
136
- Compile-time check that all the instances provided, which removes a whole layer of errors.
137
137
- Inject's API operates simple concepts like instance, injection/replacement, scope and lifetime.
0 commit comments