urban-health-labs/CombineFirebase

Is it possible to paginate data with CombineFirebase?

Closed this issue · 2 comments

I would like to know if it is possible to paginate data and how to achieve it.

Thank you

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.

Thank you very much. I am gonna try as you said.