Skip to content

Exercise for fetching data from PokeAPI in Swift & SwiftUI

License

Notifications You must be signed in to change notification settings

apemaia99/Pokemon_SwiftUI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.