InfiniteScrollListSwiftUI
Infinite Picture Scroll List in SwiftUI
This is an Infinite Scroll List implemented in SwiftUI with a feature to add items to favorites.
Features
- Infinite Scrolling
- Add to favorites
Requirements
- iOS 14.0+
- Xcode 12.0+
- Swift 5.3+
Installation
- Clone or download the project
- Open the project in Xcode
- Build and run the project
Usage
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
.
Contributions
This project is open for contributions. If you would like to contribute, please submit a pull request.
Author
This project is created by Shahzaib
License
This project is licensed under the MIT License – see the LICENSE file for details.
Acknowledgments
This project uses the picsum.photos API for demonstration purposes.