Skip to content

watery-desert/UnsplashPhotosApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

UnsplashPhotosApp

Features

✅ Used MVVM
✅ Nested JSON serialization
✅ Combine framework
✅ Staggered grid with Pagination
✅ handled idle, loading, loaded, error state
✅ Search option, managed most usecases.
✅ Download image to user device

⚠️ Before you run this project you need to add your accessKey.

Don't know how to add accessKey?

  1. Create Unsplash account
  2. At the top right corner open the menu
  3. Select "Developers/API" under "Product"
  4. Select "Your Apps"
  5. Add a new app and copy the accessKey
  6. Open this project
  7. Open /UnsplashPhotosApp/Utility/ApiKeys.swift this file
  8. Paste your accessKey there

Screen recordings

Known issue

AsyncImage has an issue loading image https://developer.apple.com/forums/thread/682498 if you don't want to see the error then

Replace this 👇

Image(systemName: "exclamationmark.triangle")

Image(systemName: "exclamationmark.triangle")
    .padding()
    .font(.largeTitle)

with this 👇

EmptyView()

Illustration Credit

People vector created by iwat1929 - www.freepik.com

About

Photos app using Unsplash API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages