Get the full source including lecture notes and more: [ Ссылка ]
In this learn to code video, we create an iOS app using XCode and will learn how to take data that exists on a remote database (MySQL) and retrieve that data (by calling a PHP web service) and downloading that data into our app to display in a List in SwiftUI.
We use JSONDecoder to convert the downloaded data from JSON into an array of objects that we will create ourself.
We use URLSession's datatask method to retrieve the JSON data from the PHP script.
Ещё видео!