Skip to content

iOS App using CatApi service to search the cat you love, learn more about cats and save your favorites breeds to check later.

Notifications You must be signed in to change notification settings

DiegoM1/TheCatPokedex

Repository files navigation

Badges

GitHub iOS Swift SwiftData UITest UnitTest

TheCatPokedex

iOS App using CatApi service to search the cat you love, learn more about cats and save your favorites breeds to check later.

Installation

To keep your API key secure and separate from your code, you can store it in an .xcconfig file. First create a *.xcconfig file where you are gonna put your api key. Plain Text (Dont rename API_KEY text cause we need to read from the info.plist)

API_KEY = API_KEY_RIGHT_HERE

Just plain text dont handle it like a string or something. After that double check on your project -> info -> configurations -> debug / release , setup your *.xcconfig file there and thats it you are ready to roll.

Demo

HomeCatView Demo(Pagination) DetailsCatVIew Add favorite cat flow
HomeCatView DetailsCatView FavoriteCatFlow

Features

  • Save and Remove Favorite cat using SwiftData
  • Check Cat details
  • Open webView to check more information about the cat
  • Searchable view to filter cats

Tech Stack

Client: Swift, SwiftUI, SwiftData, iOS18

Server: APIRestful

Lessons Learned

  • Improve UITests

Running Tests

To run tests, You can do it manually using Xcode or you can install fastlane using brew install fastlane and then run

fastlane ios unit_tests

or

fastlane ios ui_tests

in your terminal. You need to have an iphone 16 simulator or you can change the simulator name in fastfile. We are using iOS 18 to develop this app.

Documentation

API Documentation (TheCatApi)

About

iOS App using CatApi service to search the cat you love, learn more about cats and save your favorites breeds to check later.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published