Skip to content

A basic list fetching app built entirely in SwiftUI

License

Notifications You must be signed in to change notification settings

achirkof/SwiftUI-ListFetching

 
 

Repository files navigation

The Basics of List Fetching
in SwiftUI

Demo app

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.

app-ui

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

Made by Mat Schmid

About

A basic list fetching app built entirely in SwiftUI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 100.0%