-1

In my project i use coordinator pattern to manage each viewController but i can't set coordinator to viewController for some reason.

So i try to debug an object before push to navigationController stack and on viewDidload and i get the different object from address

enter image description here

that make coordinator that i set to viewController equal nil

How can i fix that? PS. this is my github if you want to see all my project

https://github.com/goodboygb1/SanarmMai.git

Thanks :)

1 Answers1

1

You need to move your setupMainCoordinator from AppDelegate to SceneDelegate like this.

enter image description here

JIE WANG
  • 1,875
  • 1
  • 17
  • 27