Skip to content

Latest commit

 

History

History
17 lines (17 loc) · 1.65 KB

README.md

File metadata and controls

17 lines (17 loc) · 1.65 KB

Pokemon_SwiftUI

Xcode version 13 Swift Version 5.5

This is a sample Project for fetching data from PokeAPI in Swift & SwiftUI

  • This Application is full written in Swift.
  • UI has been implemented implemented with SwiftUI.
  • Images are downloaded with caching using the new SwiftUI AsyncImage view.
  • The http client for API requests leverage the latest Swift Concurrency Features (Async-Await/Actors) because of that, all async methods can potentially been suspended awaiting results, this implies also a better reading and reasoning compared to the traditional callbacks.
  • Because the pokemon count amount to 1154, is unrealistic to download everything in one shot, so it has been implemented also a pagination system, that download other pokemons while scrolling.
  • Furthermore with withThrowingTaskGroup we are able to download data in parallel instead of a sequential async requests.