I spent last weeks sharing more about type-safety and building robust APIs in Swift. I want to continue the type-safety topic by talking about GraphQL. GraphQL is a query language for your API. This week we will talk about the benefits of GraphQL, and we will learn how to utilize it in Swift.
Generating dynamic lists and details screens from an API that returns JSON is a fairly common need in modern applications. In this video, we’ll show how to use URLSession to fetch JSON, decode it using JSONDecoder, and then use BindableObject and State properties to create a SwiftUI list from the results.