Skip to content

An example of a SwiftUI app that presents a list of products, each of which can be tapped on to see some product details.

License

Notifications You must be signed in to change notification settings

danielrbrowne/ProductBrowser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ProductBrowser

An example of a SwiftUI app that presents a list of products, each of which can be tapped on to see some product details.

Features

  • Product details fetched from an API endpoint, with pagination for loading more results when the user has scrolled to the end of the current product list
  • Custom JSON decoding and UI presentation logic to handle dirty product data such as:
    • Empty product title strings
    • Empty product url strings
    • Empty product merchant strings
    • Empty product image url strings
    • De-duplication of product images (i.e. That have identical url strings which only differ by scheme prefix)
  • A basic unit test covering decoding a mock of some valid JSON from the API into relevant model objects

NOTES

  • Uses my own library APIota for the API client functionality.

About

An example of a SwiftUI app that presents a list of products, each of which can be tapped on to see some product details.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages