-
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…
-
Map – episode III: Look Around
In this episode, we’ll learn how to use the LookAround feature in our applications. To summarize, we will cover: Starting from the end, we aim for this: And by tapping on Look Around: Now you can navigate in 3D. Select a Marker Let’s begin by setting the position (the initial center of the map) in…
-
Map – episode II°
In this post, we’ll learn how to: Add Markers Let’s see how to add a marker to both Berkeley and Stanford Universities. First, we’ll create a structure for our locations: The struct implements the Identifiable protocol because we need to define an ID for each element. This is especially crucial as we want to use…
-
Map – I
This post is the first in a series about using Maps in SwiftUI. In this post, we’ll learn how to: Map Creation First, we need to add values in the info.plist for: Now, let’s take a look at the code: To use the map, we need to import MapKit, then define a position such as…