SwiftUI Core Data Tutorial: Integrating Core Data and Building a Todo List App (Save, Delete, Fetch & Update)
Welcome to the SwiftUI Core Data Tutorial! In this tutorial, you will learn how to integrate Core Data into your existing SwiftUI project and build a Todo List app with features like saving, deleting, fetching, and updating todo items.
Before we begin, make sure you have cloned or downloaded the starter project from the GitHub repository “drawrs/SwiftUI-Simple-TodoList” at the branch “crud_coredata_starter.” or open link below:
Let’s get started by adding Core Data to our project
Integrating Core Data to existing SwiftUI Project
When creating a SwiftUI project, you have the option to include Core Data or not. If you checked it, Xcode will automatically create the Core Data model, as you can see in the Project Navigator. However, if you missed checking it, you’ll need to add Core Data manually to your app project.