Home›Library›Development

Curated Library

SwiftUI & SwiftData: Build a Data-Driven iOS Vocabulary App

A short, hands-on series that builds a vocabulary notebook app for iPhone and iPad with SwiftUI and SwiftData. It walks through saving, listing, viewing, editing, deleting and searching records, plus a settings screen using AppStorage. It suits beginners who know a little Swift and want to learn local data persistence in iOS.

  • 9 lessons
  • 1h 14m total
  • Development
  • English
  • Earns YodaCoins
Lessons byThink Like an Engineer on YouTube

Curated by YodaHut. These lessons are hosted on YouTube and produced by their original creators, who are not affiliated with YodaHut. You still earn YodaCoins, keep your streak and track progress here.

9 lessons1h 14m total
One block per lesson, sized by its length

What You'll Learn

  • Define a SwiftData model, register it in the app schema, and save new records from a SwiftUI Form
  • Fetch and display saved data in a List with @Query, and open an insert form in a sheet
  • Move between a list and a detail screen with NavigationLink
  • Create sample data so SwiftUI previews work in the Xcode canvas without manual entry
  • Build one reusable form view for both adding and editing records, and rely on SwiftData autosave for edits
  • Add swipe actions to delete records, and disable the Save button while form fields are empty or invalid
  • Store user preferences with AppStorage in a Settings view, and add a searchable list that filters through a @Query built in the view initializer

Prerequisites

  • A Mac with Xcode installed
  • Basic familiarity with Swift syntax (variables, structs, functions)
  • No prior SwiftUI or SwiftData experience needed

Course Curriculum

9 lessons · 1h 14m

About the Instructor

Think Like an Engineer

YouTube creator

9 lessons here 1h 14m

The lessons in this course were produced by Think Like an Engineer and are published on YouTube. YodaHut selected and sequenced them into this course; we did not make them, and Think Like an Engineer is not affiliated with YodaHut.

Visit the channel on YouTube

More in the Library: Development