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
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.
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- 01Insert Data with SwiftData and SwiftUI Forms9:13
- 02Query and Display All Data with SwiftData4:57
- 03Navigate Between Views with NavigationLink5:37
- 04Provide Sample Data for SwiftUI Previews8:07
- 05Edit Data with a Reusable Form View11:23
- 06Delete Data with Swipe Actions8:01
- 07Dynamically Enable and Disable Buttons to Prevent Empty Forms8:08
- 08Save User Settings with AppStorage and a Settings View9:43
- 09Add a Search Bar with SwiftData Query8:45
About the Instructor
Think Like an Engineer
YouTube creator
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 YouTubeMore in the Library: Development

SwiftUI Todo List App with MVVM for Beginners

SwiftUI iOS Development for Beginners: Build a Quiz App

SwiftUI Bootcamp for Beginners: Build iOS Interfaces and App Logic

Rust for Beginners: Ownership, Structs, Error Handling and Projects

The Rust Programming Language: From Basics to Concurrency and Web Server
