in SwiftUI
The Basics of List FetchingAbout
This project goes over a basic list fetching lifecycle implementation.
Features | |
---|---|
⚡️ | Using BindableObject + URLSession to request and decode JSON payloads into Identifiable models. |
☔️ | Gracefully handling loading and and error states using a generic LoadableState enum. |
🤞 | Conditionally displaying View elements based on state. |
🖼 | Fetching and displaying images from a URL . |
🔄 | Adding UIActivityIndicator as an unofficial View element. |
Usage
- Clone or download this project
- Navigate to its directory and open the project file in Xcode 11 or above
- Build and run to a device or simulator
Made by Mat Schmid