mirror of
https://github.com/yattee/yattee.git
synced 2024-11-10 00:08:21 +00:00
Fix Favorites performance
This commit is contained in:
parent
3661d06080
commit
a763e1d097
@ -29,6 +29,7 @@ struct HistoryView: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.animation(nil, value: visibleWatches)
|
||||||
.onAppear {
|
.onAppear {
|
||||||
visibleWatches
|
visibleWatches
|
||||||
.forEach(player.loadHistoryVideoDetails)
|
.forEach(player.loadHistoryVideoDetails)
|
||||||
|
@ -80,6 +80,7 @@ struct HomeView: View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if !accounts.current.isNil, showFavoritesInHome {
|
if !accounts.current.isNil, showFavoritesInHome {
|
||||||
|
LazyVStack(alignment: .leading) {
|
||||||
#if os(tvOS)
|
#if os(tvOS)
|
||||||
ForEach(Defaults[.favorites]) { item in
|
ForEach(Defaults[.favorites]) { item in
|
||||||
FavoriteItemView(item: item)
|
FavoriteItemView(item: item)
|
||||||
@ -93,6 +94,7 @@ struct HomeView: View {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#if os(iOS)
|
#if os(iOS)
|
||||||
if homeRecentDocumentsItems > 0 {
|
if homeRecentDocumentsItems > 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user