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
WeakLazy and InjectWeakLazy resolve an optional class instance one time, on the first access, and keep only a weak reference to it. Use them to break a cyclic dependency without a retain cycle.
SelfInjectable.resolveDependencies(with:) and resolveDependenciesIfNeeded(with:) replace resolveDependncies(with:) and resolveDependnciesIfNeeded(with:). The old names are deprecated and still work.
Fixes
A background thread and the main thread no longer deadlock when both resolve an isolatedMain entity. DIKit resolves an isolatedMain entity on the main thread. If an entity depends on an isolatedMain entity, register it with registrator.isolatedMain too.
The container assembles each assembly in dependencies before the assembly that lists it. An assembly can now forward a registration of its dependency with registration(for:).
If an assembly and its dependency both register the same key with the .open access level, the registration of the assembly now replaces the registration of the dependency.
Lazy reads its value under its lock. Two threads that read the value for the first time at the same time no longer cause a data race.
A write through the projected Binding of DIState redraws the view.
DIObservedObject and DIStateObject send objectWillChange when a new instance replaces the old instance.
A SelfInjectable object keeps its DI tag and resolves its dependencies only one time.
Arguments.resolve(_:at:), the Arguments subscript and Arguments.first(_:) stop with a message that names the type and the index when no matching argument exists.
The fatal error of Resolver.resolve names the registration name when the call has one.
ViewControllerFactory.createNavigationController takes an optional bundle. The default value is nil, which selects the main bundle.