Is it possible to paginate data with CombineFirebase?
Closed this issue · 2 comments
anoels commented
I would like to know if it is possible to paginate data and how to achieve it.
Thank you
kshivang commented
Sorry for late response. You can achieve that using using firestore .startWith or .startAt with .limit.
firebase docs and at last append .publisher to use it as swiftui-combine compatible api. You have to use different publisher for every page. To know end of the page you can add .onAppear (swiftUI api) with every itemView of list.
anoels commented
Thank you very much. I am gonna try as you said.