Core Data MVVM Architecture (CRUD Method) using Combine Framework in SwiftUI

preview_player
Показать описание
Core Data is always enigma for iOS or macOS Developers as some doesn’t like it complexity or some might think it hard to implement and drop it overall.

But knowing a better concept of Core Data really help to derive a better App without doing much complex setup which developer used to do earlier. And using MVVM Architecture inside Core Data really help developer to easily manage app complexity and mange right amount of data.

In this video we gonna look how to build an App with Core Data by applying all Create Read Update and Delete operation using Model View ViewModel Architecture with Apple Combine Framework.

Recommended Videos :

Checkout full playlist :

Timeline
Intro (00:00)
Core Data with MVVM (0:54)
What is MVVM Architecture (1:30)
How MVVM Architecture works (2:29)
How View and ViewController work using Combine Framework (3:12)
What is Combine Framework? (3:28)
What is Observable Object (4:02)
App Demo (4:20)
Setting up Core Data (5:33)
Setting up TaskList View Model (8:53)
Create add list view (10:34)
Building Create Method (11:52)
Building Read Method (14:20)
Create Task List Cell View (15:47)
Building Update Method (20:42)
Building Delete Method (25:29)
Final Demo (26:41)

Support us on

Follow us on
Рекомендации по теме
Комментарии
Автор

This video really helped me! Thank you so much

MauricioChavesDias
Автор

MVVM is model, view, view model
It’s confusing to see view controller in the overview

cmtogether
Автор

Fantastic video. Sometimes a bit fast, requiring <<. I like the way that add and edit functionality is combined instead of repeating the property assignment code. The sheet could be tidied up as it is not intuitive to the user - maybe only half a screen display and with dismiss() functionality after an edit. To answer your request - I am developing a business related app with Many to Many relationships - probably about 6 entities and some JSON data and I am converting my partially completed app to MVVM. To complicate matters both iOS and MacOS are the targets and will require CloudKit. Well done.

brucknerdevilliers
Автор

Nice Video, however this is not completely implementing MVVM, if I am not mistaken. In MVVM the View should not access the data directly. In this code the NSFetchRequest is directly in the View (ContentView). This should be handled inside the ViewModel, if we want to strictly follow MVVM. No direct data access inside the View.

celineh
Автор

I have a question, because I want to understand it: Why don't you include the previews in the views? Maybe I'm wrong, but for me they are very useful to quickly see the quick modifications in the code on the canvas. Thanks a lot in advance.

OttoSchmilinsky
Автор

In the description, it states SwiftUI 3, but that is outdated. Did you mean to say it was SwiftUI 13?

joshuahardy
visit shbcf.ru