Video Tutorial - Adding Infinity Scroll Pagination in SwiftUI with Task Modifier
Published at Sep 28, 2021
We are going to add Infinity Scroll Pagination functionality to an existing News App which fetches the data from NewsAPI.org and displays the article in a List or Grid depending on the target platform.
For this video, here are the following 5 main tasks which we'll implement:
- Create PagingData Actor Model.
- Update NewsAPI service fetchArticles method.
- Add additional state for fetchingNextPage to the DataFetchPhase enum.
- Implement PagingData with ArticleNewsViewModel Observable Object
- Implement Pagination to the Article List View.