71 questions
-2
votes
1
answer
94
views
error Extra arguments at positions #1, #2 in call [closed]
Hello I'm in a swiftUI project with the mvvm format I want to get the client sessions with a dependency but I have the following error Extra arguments at positions #1, #2 in call I have a view a ...
1
vote
1
answer
90
views
NSEntityDescription Error when trying to provide modelContainer to WindowGroup
I'm having an issue when trying to provide my model container to my WindowGroup. I get the error:
'NSInternalInconsistencyException', reason: 'NSFetchRequest could not locate an NSEntityDescription ...
2
votes
1
answer
405
views
Swinject Dependencies not being properly initialized: Swinject: Resolution failed
I'm having an issue when trying to initialize my dependencies via a container using Swinject. I get the error:
Swinject: Resolution failed. Expected registration:
{ Service: LoginViewModel, Factory: ...
0
votes
1
answer
162
views
Swinject error binding to date picker selection
I have a SwiftUI view that uses a date picker.
I am trying to update my model via the date picker. The model is "Injected" via swinject, however I feel like something is slightly missing.
...
4
votes
1
answer
825
views
How to use Swinject to register protocol conforming to ObservableObject?
Right now, I've been running into an issue of registering protocol conforming to ObservableObject. Since ObservableObject uses an associated type, I cannot find a way to register it without compiling ...
0
votes
0
answers
832
views
Swinject always return nil when trying to resolve any object
I have the following Swinject implementation in my app -
import Foundation
import Swinject
@propertyWrapper
struct Inject<Component> {
let wrappedValue: Component
init() {
self....
0
votes
0
answers
606
views
How to resolve from other modules in Swinject
Modularized the project using Tuist. I made RepositoryAssembly and UseCaseAssembly on the Data module and Domain module. Assembler is located in InjectManager and runs in AppDelegate in the App module....
1
vote
0
answers
93
views
Applying a new Assembly from UI test doesn't change returned instance
I try to change a registered protocol from UI test but it doesn't change. What I am doing wrong here?
I have a shared DIAssembler that manage dependancies using Assemblies as following:
import ...
1
vote
0
answers
630
views
Router navigation in VIPER + Swinject
I have mainAssembly:
final class ApplicationAssembly {
var assembler: Assembler
init(with assemblies: [Assembly]) {
self.assembler = Assembler(assemblies)
}
}
With two module ...
1
vote
0
answers
95
views
What is the expected lifecycle of SWINject Graphidentifiers
I'll start my saying that I'm inexperienced with Swinject.
I'm trying to figure out why Swinject.graphIdentier instances are constantly growing in my app.
In my case when I enter a ViewController I ...
1
vote
0
answers
2k
views
Build Failed Task failed with exit code 65
I am working on a project that uses Carthage, it’s been a couple of months since the last time the project was opened. Now I am trying to move dependencies to .xcframeworks because with the old ....
1
vote
1
answer
651
views
Problem registering protocols with associated types using swinject
I wanted to develop an application which uses repository patterns using core data and realm. I want to resolve protocol according to my needs. Purpose is to inject a generic core data repository / ...
0
votes
0
answers
321
views
Passing Objects between ViewModels in MVVM-C with Dependency Injection (Swinject)
I am new to DependencyInjection and Swinject and because of that i have question.
Let's say we have a ViewModel PersonList with a list of Person objects. We select one of the Person and pass it to ...
0
votes
3
answers
977
views
Swinject returns nil because object is wrong registered
This is how I register object for FirebaseMessaging:
container.register(Messaging.self) { _ in
return Messaging.messaging()
}
and then I need to use it:
container.register(...
0
votes
1
answer
173
views
Stuck with storyboards control under swinject environment
Hi I am trying to apply swinject for my IOS project and currently I have been stuck..
I have 2 part in my application
LOGIN Part
MAIN Part
Scenario is if it's logged in already when application ...