An application that allows you to view pictures from a remote resource
- Tests
- Github Actions
The API of the resource that was given picsum.photos
is not quite optimally designed for this task.
It contains a downloadable image (large full size) and a link to view on unsplash.
For fast and smooth work we need thumbnails and full size pictures for the details screen. For example jsonplaceholder.typicode.com/photos
To change endpoint edit NomNomPhotosApp
use another environment
@main
struct NomNomPhotosApp: App {
var body: some Scene {
WindowGroup {
AppView(
store: .init(
initialState: AppState(),
reducer: appReducer,
environment: .liveWithThumbnails
)
)
}
}
}
- Install tuist.
curl -Ls https://install.tuist.io | bash
- Generate xcodeproj and open
tuist generate --open