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

  Рет қаралды 9,697

Karin Prater

Karin Prater

Күн бұрын

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
Link to PDF file www.swiftyplace.com/f/data-st...
Resources:
- Firebase authentication firebase.google.com/docs/auth...
- Realm define data model docs.mongodb.com/realm/sdk/io...
If you liked what you learned and you want to see more, check out one of my courses!
👨‍💻 my SwiftUI course school.swiftyplace.com/course...
👨‍💻 my Core Data and SwiftUI course school.swiftyplace.com/course...
#storeDate #iOS #Swift

Пікірлер: 12
@g-3409
@g-3409 3 жыл бұрын
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 😂
@lincolndickerson1293
@lincolndickerson1293 3 жыл бұрын
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.
@thoang613
@thoang613 Жыл бұрын
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
@adamdahan839
@adamdahan839 3 жыл бұрын
Wonderful video - thank you - can't wait to do your course!
@shadieossei4336
@shadieossei4336 2 жыл бұрын
Wow! This is amazing. You really made me understand these better. Thanks a lot
@user-yt9uj5oi9d
@user-yt9uj5oi9d Жыл бұрын
Love your video. It covers many key concepts of the interviewing questions.
@MikaelaCaron
@MikaelaCaron Жыл бұрын
Thanks Karin! Great video! ❤️
@AndrewDChristie
@AndrewDChristie 5 ай бұрын
Thanks!
@josuecruz0921
@josuecruz0921 2 жыл бұрын
Great explanation. Thanks alot.
@jasondubon
@jasondubon Жыл бұрын
The cat in the back 😃
@memofigueredo6931
@memofigueredo6931 3 жыл бұрын
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
@adamdahan839
@adamdahan839 3 жыл бұрын
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...?
Alex hid in the closet #shorts
00:14
Mihdens
Рет қаралды 18 МЛН
Sigma girl and soap bubbles by Secret Vlog
00:37
Secret Vlog
Рет қаралды 15 МЛН
路飞太过分了,自己游泳。#海贼王#路飞
00:28
路飞与唐舞桐
Рет қаралды 38 МЛН
Save data and images to FileManager in Xcode | Continued Learning #26
50:39
SwiftData Basics in 15 minutes
15:18
CodeWithChris
Рет қаралды 42 М.
What's going on with Windows Laptops?
10:30
Marques Brownlee
Рет қаралды 2,6 МЛН
Alex hid in the closet #shorts
00:14
Mihdens
Рет қаралды 18 МЛН