Skip to content

Commit 16f4ed5

Browse files
committed
feat: migrated syncing first page in Inbox from List to LazyVStack
1 parent 7c381ea commit 16f4ed5

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

WooCommerce/Classes/ViewRelated/Inbox/Inbox.swift

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,16 @@ struct Inbox: View {
2929
image: .emptyProductsTabImage)
3030
.frame(maxHeight: .infinity)
3131
case .syncingFirstPage:
32-
List {
33-
ForEach(viewModel.placeholderRowViewModels) { rowViewModel in
34-
InboxNoteRow(viewModel: rowViewModel)
35-
.redacted(reason: .placeholder)
36-
.shimmering()
32+
ScrollView {
33+
LazyVStack(spacing: 0) {
34+
ForEach(viewModel.placeholderRowViewModels) { rowViewModel in
35+
InboxNoteRow(viewModel: rowViewModel)
36+
.redacted(reason: .placeholder)
37+
.shimmering()
38+
}
39+
.background(Color(.listForeground))
3740
}
3841
}
39-
.listStyle(PlainListStyle())
4042
}
4143
}
4244
.background(Color(.listBackground).ignoresSafeArea())

0 commit comments

Comments
 (0)