fix tvOS from previous attempt at work

This commit is contained in:
Ethan Pippin 2022-01-13 22:59:31 -07:00
parent e700f10531
commit d47268cfe1
3 changed files with 3 additions and 2 deletions

View File

@ -34,6 +34,6 @@ final class MovieLibrariesCoordinator: NavigationCoordinatable {
}
func makeLibrary(library: BaseItemDto) -> LibraryCoordinator {
// LibraryCoordinator(viewModel: LibraryViewModel(parentID: library.id), title: library.title)
LibraryCoordinator(viewModel: LibraryViewModel(parentID: library.id), title: library.title)
}
}

View File

@ -34,6 +34,6 @@ final class TVLibrariesCoordinator: NavigationCoordinatable {
}
func makeLibrary(library: BaseItemDto) -> LibraryCoordinator {
LibraryCoordinator(viewModel: .init(libraryItem: <#T##BaseItemDto#>))
LibraryCoordinator(viewModel: LibraryViewModel(parentID: library.id), title: library.title)
}
}

View File

@ -15,6 +15,7 @@ struct LibraryView: View {
var libraryRouter: LibraryCoordinator.Router
@StateObject
var viewModel: LibraryViewModel
var title: String
// MARK: tracks for grid