SwiftUI ScrollView with custom "pull to refresh" & "scroll to load-more" implementations
PaginatedScrollView
SwiftUI ScrollView with custom “pull to refresh” & “scroll to load-more” implementations.
example usage
PaginatedScrollView {
.....
}
.reloadable {
// call your reload async func
}
.moreLoadable { canLoadMore in
// call your loadMore async func
canLoadMore.wrappedValue = false
}