SwiftUI-ListFetching

A basic list fetching app built entirely in SwiftUI

MIT License

Stars
65

About

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

  1. Clone or download this project
  2. Navigate to its directory and open the project file in Xcode 11 or above
  3. Build and run to a device or simulator
Related Projects