Skip to content

Commit 1a54582

Browse files
committed
Improve documentation for InfiniteScrollList component
1 parent f6315d4 commit 1a54582

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import SwiftUI
22

3+
/// A list that renders the provided list content with an infinite scroll indicator.
4+
///
35
struct InfiniteScrollList<Content: View>: View {
46
/// Content to render in the list.
57
///
@@ -13,13 +15,12 @@ struct InfiniteScrollList<Content: View>: View {
1315
///
1416
private let loadAction: () -> Void
1517

16-
/// A list that renders the provided list content with an infinite scroll indicator.
18+
/// Creates a list with the provided content and an infinite scroll indicator.
1719
///
1820
/// - Parameters:
1921
/// - isLoading: Whether the list is loading more content. Used to determine whether to show the infinite scroll indicator.
2022
/// - loadAction: Action to load more content.
2123
/// - listContent: Content to render in the list.
22-
///
2324
init(isLoading: Bool,
2425
loadAction: @escaping () -> Void,
2526
@ViewBuilder listContent: () -> Content) {

0 commit comments

Comments
 (0)