Skip to content

Commit

Permalink
Update code
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangatuan committed Feb 1, 2024
1 parent b05d742 commit 6efb411
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions iMovie/Presentation/MovieTabCoordinator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import SwiftUI
import People

struct MovieTabCoordinator: View {

@EnvironmentObject var configuration: Configuration
@ObservedObject var router = Router()
@StateObject var router = Router()

var body: some View {
NavigationStack(path: $router.navPath) {
Expand All @@ -32,7 +32,7 @@ struct MovieTabCoordinator: View {
switch destination {
case .movieDetail(let movie):
MovieDetailCoordinator(dependencies: .init(movie: movie, apiClient: configuration.apiClientService))
case .tvDetail(let tvSeries):
case .tvDetail(_):
Text("TV Series Detail")
}
}
Expand Down
2 changes: 1 addition & 1 deletion iMovie/Presentation/TvSeriesTabCoordinator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import TVSeries
import Search

struct TvSeriesTabCoordinator: View {
@ObservedObject var router = Router()
@StateObject var router = Router()
@EnvironmentObject var configuration: Configuration

var body: some View {
Expand Down

0 comments on commit 6efb411

Please sign in to comment.