Introduction

Introduction

SwiftData tutorial

This short tutorial guides you through creating a grocery list mobile app using SwiftData and SwiftUI frameworks. With Xcode previews, you can edit your app’s views in code and instantly see the results on the preview canvas. Additionally, we incorporate previews into your SwiftUI with the preview macro. You can then customize the display of these previews either through Xcode’s preview canvas or directly in code.

Grocery List App

Buy nowLearn more

Introduction

  • Grocery List App Demo
  • Introduction

Resources

  • Workbook
  • Grocery List App Project Files – iOS26
  • Grocery List App Project Files – iOS18

Lessons

  • Chapter 1 - Project Setup
  • Chapter 2 – SwiftData Model
  • Chapter 3 – Sample Data in Preview
  • Chapter 4 – Deleting and Updating Data
  • Chapter 5 – Saving Data Objects
  • Chapter 6 – TipKit Integration