Xcoding with Alfian

Software Development Videos & Tutorials

Video Tutorial - Adding Infinity Scroll Pagination in SwiftUI with Task Modifier

Alt text

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:

  1. Create PagingData Actor Model.
  2. Update NewsAPI service fetchArticles method.
  3. Add additional state for fetchingNextPage to the DataFetchPhase enum.
  4. Implement PagingData with ArticleNewsViewModel Observable Object
  5. Implement Pagination to the Article List View.