This is a SwiftUI app that uses the CATAAS API to show cats
- Endless Cat Feed
- Pagination
- Image Caching
- iOS 14.0+
- Xcode 12.0+
This app is localized for English and Spanish. App strings are stored in CatGallery/Strings
, then converted to type-safe variables by SwiftGen at build time.
These variables are saved to CatGallery/Generated/Strings+Generated.swift
. Don't modify this file as it is overwritten every time the app builds. A convenience struct called Strings.swift
is provided to access localized strings.
The CATAAS API provides an endpoint for pagination, but it doesn't work as expected. When setting skip > 0
as a query parameter in /api/cats
, the API returns more results than specified in the limit
field. As a result, the second page of results is much larger than the first in this app.
Used for networking.
Used to generate type safe images, fonts, colors, and localized strings at build time.
Used for optimized image loading and caching.