Skip to content

This is a SwiftUI app that uses the CATAAS API to show cats

Notifications You must be signed in to change notification settings

obianachebe/CatGallery

Repository files navigation

Cat Gallery

Swift Version

This is a SwiftUI app that uses the CATAAS API to show cats

📋 Features

  • Endless Cat Feed
  • Pagination
  • Image Caching

📸 Screenshots

Cat Feed

☝️ Requirements

  • iOS 14.0+
  • Xcode 12.0+

🌎 Localization

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.

ℹ️ CATAAS Limitations

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.

🤝 Dependencies

Used for networking.

Used to generate type safe images, fonts, colors, and localized strings at build time.

Used for optimized image loading and caching.

About

This is a SwiftUI app that uses the CATAAS API to show cats

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages