Infinite Picture Scroll List in SwiftUI
This is an Infinite Scroll List implemented in SwiftUI with a feature to add items to favorites.
- Infinite Scrolling
- Add to favorites
- iOS 14.0+
- Xcode 12.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.
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 picsum.photos API for demonstration purposes.