File tree 1 file changed +3
-3
lines changed
ExampleMVVM/Presentation/MoviesScene/Flows
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ protocol MoviesSearchFlowCoordinatorDependencies {
15
15
16
16
class MoviesSearchFlowCoordinator {
17
17
18
- private let navigationController : UINavigationController
18
+ private weak var navigationController : UINavigationController ?
19
19
private let dependencies : MoviesSearchFlowCoordinatorDependencies
20
20
21
21
private weak var moviesListVC : MoviesListViewController ?
@@ -34,13 +34,13 @@ class MoviesSearchFlowCoordinator {
34
34
closeMovieQueriesSuggestions: closeMovieQueriesSuggestions)
35
35
let vc = dependencies. makeMoviesListViewController ( closures: closures)
36
36
37
- navigationController. pushViewController ( vc, animated: false )
37
+ navigationController? . pushViewController ( vc, animated: false )
38
38
moviesListVC = vc
39
39
}
40
40
41
41
private func showMovieDetails( movie: Movie ) {
42
42
let vc = dependencies. makeMoviesDetailsViewController ( movie: movie)
43
- navigationController. pushViewController ( vc, animated: true )
43
+ navigationController? . pushViewController ( vc, animated: true )
44
44
}
45
45
46
46
private func showMovieQueriesSuggestions( didSelect: @escaping ( MovieQuery ) -> Void ) {
You can’t perform that action at this time.
0 commit comments