How to store data in an iOS app? - Introduction to data persistence in Swift locally and with sync

preview_player
Показать описание
Get to know the different storage options for iOS applications. I will talk about local solutions like Core Data, the FileManager and UserDefaults. Another important aspect is to know how to design a data model and to work with Codable. I will also talk about reasons why you might want to consider using a database e.g. Core Data.
Last, I will give a brief overview of the different options if you want to sync data between different devices e.g. iCloud and custom servers. A good starting point is to use Firebase and MongoDB Realm.

Overview:
00:00 introduction
01:09 simple vs complex data
04:57 how to define a data model in Swift
08:57 where to store the data - local and remote storage
18:49 wrap up

Resources:

If you liked what you learned and you want to see more, check out one of my courses!

#storeDate #iOS #Swift
Рекомендации по теме
Комментарии
Автор

I love that you work with mind-maps and focus on the why. Do you happen to know Dr. Justin Sung? He also talks about focusing on the why and connection concepts

thoang
Автор

Wonderful video - thank you - can't wait to do your course!

adamdahan
Автор

I’ve been stuck with a mvvm core data swiftui project for a while now, so seeing your core data course was available, I jumped straight to it now.. see you in some hours, I’ll probably have some questions then 😂

g-
Автор

Great overview. I have been working with these things in multiple projects over the last few years and this is a great summary. Previously I used firebase which had many advantages, the downside is the build times are very long once adding in the cocoapod. Currently I am using AWS as a web service which is the source of truth and holding a local copy of infomation for offline use. Coordinating the updates to AWS and synching those with the local Coredata storage has been an interesting challenge. Thanks for sharing so much of your knowledge.

lincolndickerson
Автор

Wow! This is amazing. You really made me understand these better. Thanks a lot

shadieossei
Автор

Love your video. It covers many key concepts of the interviewing questions.

ytujoid
Автор

I have a good questions what is better to webservices implementation realm or core data you can create one video compare realm vs core data

memofigueredo
Автор

What if a user has two devices and 1 apple ID. Like most of us (iPhone / iPad) How can you ensure the keychain is synced between the two. Deleting an item from keychain in one device surely takes time to propagate to the second... Any thoughts? The reason why I ask is because I have found that it takes about 25 mintues for data to propagrate to icloud drive & be available to all my devices. Wondering if it's the same for keychain...?

adamdahan