-
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…
-
SwiftData – Episode I°- Introduction
The goal of this tutorial is to learn SwiftData by building a Pomodoro app (we’ll be using code from another one of my tutorials). SwiftData replaces CoreData, and I can say that CoreData is a pain for any iOS developer. With SwiftData, things are much simpler. Enough with the introduction, let’s start. In this post,…
-
AppStorage – UserDefaults
In this post, we’ll explore how to use AppStorage. Commonly, UserDefaults is employed to save small amounts of data, such as user preferences in an app. However, it comes with certain limitations: What is AppStorage? It’s a wrapper for UserDefaults that allows us to save and load data from UserDefaults without having to directly call…
-
Form And Group
Here are two ways to group widgets in SwiftUI: Form The official documentation defines a form as: “A container for grouping controls used for data entry, such as in settings or inspectors.” In fact, we often see it used in iOS settings or in the Health app, where there is data entry, not just tap…
-
Map: Episode V – Route
In this fifth and final episode of our series on Maps in SwiftUI, we’ll learn how to: As usual, let’s start from the beginning. In the code, we set the starting point at Infinite Loop and the ending point at Apple Park. By clicking on the car icon, we change the transport type to walking….
-
Map – episode IV: Search Around
In this episode, we’ll learn how to conduct a search on the map. Our objective is to achieve something like this: Therefore, by typing in a text field what we want to search for, the points of interest found will be displayed on the map. In the example, I typed Shop, but you can type…