✅ 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
- Create Unsplash account
- At the top right corner open the menu
- Select "Developers/API" under "Product"
- Select "Your Apps"
- Add a new app and copy the accessKey
- Open this project
- Open
/UnsplashPhotosApp/Utility/ApiKeys.swift
this file - Paste your accessKey there
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")
.padding()
.font(.largeTitle)
with this 👇
EmptyView()
People vector created by iwat1929 - www.freepik.com