Starbucks in Swift: History View: HTTP Request with JSON (Ep.9)

preview_player
Показать описание
HTTP / URLSession / URLTask

In this episode we look at how to make HTTP requests in Swift, parse JSON, and then add checks to ensure we are always updating the UI from the main thread.

Source code

Twitter
@jrasmusson

Courses

Level Up AutoLayout

Level Up in Swift
Рекомендации по теме
Комментарии
Автор

How in the heck did I ever miss your tutorials? Great job and thank you!

pupdoggify
Автор

Thank you for this tutorial! Question re HistoryService, this is basically the network service right? I sometimes see people do it as a class and using a singleton and others do it as a struct (like what you did here)? Is there a difference? Which is more ideal to use then? Thanks.

shingetzu