Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with SceneDelegate #1

Open
fabian1122 opened this issue Oct 23, 2020 · 2 comments
Open

Issues with SceneDelegate #1

fabian1122 opened this issue Oct 23, 2020 · 2 comments

Comments

@fabian1122
Copy link

Good afternoon,
I am following this demo to use Coordinators which works very well with AppDelegate, but when using SceneDelegate I have problems

let coordinator: Coordinator
coordinator = AppDelegate.container.resolve (SplashCoordinator.self)!

error.- Fatal error: Unexpectedly found nil while unwrapping an Optional value: file App / AppCoordinator.swift, line 29

They can help me how I could control this problem since I have several days without being able to solve it

Thank you

@wojciech-kulik
Copy link
Owner

Hi,

I don't know how your code looks like. But as the error says, you have a nil value in AppCoordinator.swift, line 29.

Make sure you call AppDelegate.container.registerDependencies() before using AppDelegate.container.

@fabian1122
Copy link
Author

In the AppDelegate I have it like this
Captura de Pantalla 2020-10-23 a la(s) 15 58 42
in the SceneDelegate I have it like this
Captura de Pantalla 2020-10-23 a la(s) 16 02 27
But when I enter SceneDelegate it gives me that problem mentioned above, I tried to control like this in the image below, but the device shows me a black screen
Captura de Pantalla 2020-10-23 a la(s) 16 04 08
This is in the AppCoordinator

What do you recommend me to do
Thanks for your attention

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants