feat: for tvOS

This commit is contained in:
2026-02-26 22:45:05 +08:00
parent 03b7a8bf25
commit cd8c3afd7d
13 changed files with 208 additions and 6 deletions

View File

@@ -48,9 +48,11 @@ struct BrowseView: View {
.navigationDestination(for: ContentItem.self) { item in
DetailView(item: item)
}
#if !os(tvOS)
.refreshable {
await viewModel.loadContent()
}
#endif
.task {
viewModel.category = category
await viewModel.loadContentIfNeeded()