Infinite Picture Scroll List in SwiftUI

Infinite Picture Scroll List in SwiftUI

This is an Infinite Scroll List implemented in SwiftUI with a feature to add items to favorites.


100% business logic in Unit test. Screenshot 2023-07-10 at 00 52 03


  • Infinite Scrolling
  • Add to favorites


  • iOS 13.0+
  • Xcode 13.0+
  • Swift 5.3+


  • Clone or download the project
  • Open the project in Xcode
  • Build and run the project


The Infinite Scroll List can be used by navigating to the “Infinite List” tab in the app. The list will automatically fetch and display new items as the user scrolls to the bottom of the list.

The “Add to favorites” feature can be accessed by tapping on an item in the Infinite Scroll List. The item will be added to the “Favorites” tab and can be viewed there.

Test Cases

This project includes Unit tests for the view models and the network layer.

To run the test cases in Xcode, navigate to Menu Bar -> Product -> Test or press Command + U.


This project is open for contributions. If you would like to contribute, please submit a pull request.


This project is created by Shahzaib


This project is licensed under the MIT License – see the LICENSE file for details.


This project uses the API for demonstration purposes.


View Github