Fix Favorites performance

This commit is contained in:
Arkadiusz Fal 2022-12-22 19:36:35 +01:00
parent 3661d06080
commit a763e1d097
2 changed files with 15 additions and 12 deletions

View File

@ -29,6 +29,7 @@ struct HistoryView: View {
}
}
}
.animation(nil, value: visibleWatches)
.onAppear {
visibleWatches
.forEach(player.loadHistoryVideoDetails)

View File

@ -80,6 +80,7 @@ struct HomeView: View {
}
if !accounts.current.isNil, showFavoritesInHome {
LazyVStack(alignment: .leading) {
#if os(tvOS)
ForEach(Defaults[.favorites]) { item in
FavoriteItemView(item: item)
@ -93,6 +94,7 @@ struct HomeView: View {
}
#endif
}
}
#if os(iOS)
if homeRecentDocumentsItems > 0 {