mirror of
https://github.com/yattee/yattee.git
synced 2025-10-16 04:18:13 +00:00
Add loading status to vertical cells
This commit is contained in:
@@ -20,7 +20,7 @@ struct PopularView: View {
|
||||
}
|
||||
|
||||
var body: some View {
|
||||
VerticalCells(items: videos) { if shouldDisplayHeader { header } }
|
||||
VerticalCells(items: videos, isLoading: resource?.isLoading ?? false) { if shouldDisplayHeader { header } }
|
||||
.onAppear {
|
||||
resource?.addObserver(store)
|
||||
resource?.loadIfNeeded()?
|
||||
|
Reference in New Issue
Block a user