SwiftUI app that fetches images from Unsplash to display them in a grid

Unsplash Image Grid App

Simple single scene application that is connected to the Unsplash API and presents the search results in a grid.

Setup

The API key configuration is setup as described here and the API key needs to be added in the Config.xcconfig file to test the app.

Note

  • As mentioned in the Unsplash API documentation, Unsplash uses BlurHash Placeholders. Therefore, the code in Unsplash/Utils/BlurHashDecode.swift is taken from Wolt to decode the BlurHash.
  • This is only simple implementation based on a coding assignment, therefore some aspects such as testing, accessibility or landscape mode are not explicitly supported.

Preview

Screenshots of Unsplash Image Grid App

GitHub

View Github