Skip to content

Commit 6cfc609

Browse files
committed
feat: migration to LazyVStack in InfiniteScrollList
1 parent 471d5d5 commit 6cfc609

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

WooCommerce/Classes/ViewRelated/ReusableViews/SwiftUI Components/InfiniteScrollList.swift

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,16 @@ struct InfiniteScrollList<Content: View>: View {
3030
}
3131

3232
var body: some View {
33-
List {
34-
listContent
33+
ScrollView {
34+
LazyVStack {
35+
listContent
3536

36-
InfiniteScrollIndicator(showContent: isLoading)
37-
.onAppear {
38-
loadAction()
39-
}
37+
InfiniteScrollIndicator(showContent: isLoading)
38+
.onAppear {
39+
loadAction()
40+
}
41+
}
4042
}
41-
.listStyle(PlainListStyle())
4243
}
4344
}
4445

0 commit comments

Comments
 (0)