Category Archives: Swift, SwiftUI

SwiftUI – Pie Chart

By | 08/05/2024

In this post, we will see how to create a Pie Chart using new mark type called SectorMark introduced in iOS 17.0.For this post, we will visualize a simple monthly budget allocation using different spending categories such as Housing, Food, Transportation, Entertainment, and Savings. We start to define the Data Model:[BUDGETDATA.SWIFT] Then, we define the… Read More »

SwiftUI – Property Wrappers

By | 10/04/2024

In this post, we will see how to use Property Wrappers in our SwiftUI projects.But first of all, what are Property Wrappers?“Property wrappers in SwiftUI are a powerful feature that enables us to add extra logic to the properties of our SwiftUI views or data models. They can manage storage, modify behavior, and add additional… Read More »

Swift – SwiftData

By | 28/02/2024

In this post, we will see how to use SwiftData in our projects.But, first of all, what is SwiftData?SwiftData is an Apple’s new data modeling and persistence framework, that offers a streamlined and modern approach to managing data. Unlike its more complex predecessor, Core Data, SwiftData emphasizes ease of use, type safety, and seamless integration… Read More »

Swift – SQLite

By | 13/12/2023

In this post, we will see how to use SQLite in an iOS project.In detail, we will use SQLite in the same application created in the post: Swift – Core Data. First of all, we have to add SQLite.swift in our project to simplify the process of working with SQLite databases: Go to File ->… Read More »

SwiftUI – MapKit

By | 08/11/2023

In this post, we will see a brief introduction to MapKit and how we can use it in our applications.But first of all, what is MapKit?From Apple web site:“MapKit for SwiftUI allows you to build map-centric views and apps across Apple platforms. You can design expressive and highly interactive Maps with minimal code by composing… Read More »

SwiftUI – Grid

By | 04/10/2023

In this post, we will see how to use Grid, the new container view introduced in iOS 16 that allows us to create simple, yet flexible layouts.It is similar to the LazyVGrid and LazyHGrid views but, it is designed to be easier to use for simpler layouts.To create a Grid view, we simply specify the… Read More »