-
REST – Episode III – Obsevation Framework
In this post, we’ll take a look at the Observation framework. The idea is that this framework will replace Combine, so for those starting to develop on iOS now, it’s better to start with it – it’s the future. Let’s see how it works using the structures from the first episode SwiftUI and REST (Episode…
-
SwiftUI – Episode II – POST and Authentication
In this post, we’ll learn how to perform POST requests and use a bearer token to access REST APIs that require authentication. At the end of the post, you’ll find a link to the GitHub project, which includes the code for the mobile application as well as a simple server for testing purposes. Post First,…
-
Rest – Episode I° – Get
In this episode, we will see how to implement a GET request. In the next one, we’ll explore how to make a POST request, and in the last one, we’ll examine different solutions. Suppose we want to search for books using the Google Books API: https://www.googleapis.com/books/v1/volumes?q=intitle:your-word. The idea is to write the search text in…
-
Share data in an application
Many blog posts are responses to my students’ questions, and this one is no different. Often, my students need to build fast prototypes without saving permanent data and want to avoid writing complicated code with Core Data or the newer SwiftData. They frequently ask, “How can we share data across the application without passing it…
-
SwiftData – Episode III°
In this episode about SwiftData we’ll learn: Before we start, I advise you to review the previous episodes (SwiftData – Episode I°- Introduction and SwiftData – Episode – II° – Delete/) Edit Data First of all, we will create the view to edit a ProjectItem: A part from the variable used to dismiss the sheet…
-
SwiftData – Episode II° – Delete
In this episode, we’ll learn how to delete data. Let’s start with deletion in the projects (I advise you to take a look at the previous episode because I will start from that code). The first step is to ensure that when we delete a project, we also delete all the pomodoros for that project…
