Getting Started With CoreData

  Рет қаралды 10,301

Swift Arcade

Swift Arcade

Күн бұрын

In video we look at what CoreData is, how to set it up in an existing project, along with how to Create/Read/Update/Delete a simple Entity.
Book
www.softcover.io/read/7671f69...
Source code
github.com/jrasmusson/swift-a...
Twitter
@jrasmusson
Courses
Level Up in Swift
www.udemy.com/course/level-up...
Level Up AutoLayout
www.udemy.com/course/level-up...

Пікірлер: 42
@swiftarcade7632
@swiftarcade7632 3 жыл бұрын
Any other Core Data topics you'd like covered? Let me know below.
@magnusagnwik9018
@magnusagnwik9018 3 жыл бұрын
How to sort data in Data Core and then use it in a line chart. Dates on one data axis (Mon-Sun) and miles driven by car on the other, as an example.
@swiftarcade7632
@swiftarcade7632 3 жыл бұрын
@@magnusagnwik9018 Hi Magnus. This is doable but tricky. I don't think the hard part will be the sorting of data (Core Data is really strong here). The hard part is displaying the graph. One way I have seen this done is through Core Graphics. I have an intro to Core Graphics in my Starbucks playlist. You can start there. Let me know how it goes. kzfaq.info/get/bejne/npeTqcx-x9bUlJ8.html
@frankgrau8219
@frankgrau8219 3 жыл бұрын
Would be nice to see example of two entities with relationship and how to create and update them
@matthewasgari194
@matthewasgari194 4 жыл бұрын
Hands down best explanation I've come across anywhere. Thanks for the help!
@swiftarcade7632
@swiftarcade7632 4 жыл бұрын
You're very welcome!
@sakshipatil9537
@sakshipatil9537 5 ай бұрын
The nicest and easiest explanation I have come across by far 🙏🏻Thank you!
@xstrikethreex
@xstrikethreex 3 жыл бұрын
Thanks for keeping the intro simple and short. Hope you'll do more on CoreData
@swiftarcade7632
@swiftarcade7632 3 жыл бұрын
More to come!
@maxspeed2k
@maxspeed2k 2 жыл бұрын
Spending my Friday night trying to learn core data... fun times!
@swiftarcade7632
@swiftarcade7632 2 жыл бұрын
Isn't that how everyone spends their Friday nights?
@davidv496
@davidv496 4 жыл бұрын
By far, the best explanation of Core Data on KZfaq. Thank you very much! Will you be posting SwiftUI videos in the future?
@muhammadwaqas1219
@muhammadwaqas1219 4 жыл бұрын
Agreed
@swiftarcade7632
@swiftarcade7632 4 жыл бұрын
Thank you Aerial. Yes eventually. But nothing planned at the moment.
@alphadarling
@alphadarling 2 жыл бұрын
Also agree! other tutorials are so confusing. Thank you this was clearest one I can find ^^
@zhaoyangli5957
@zhaoyangli5957 4 жыл бұрын
Nice voice, nice speed, no redundant code, no redundant explanation. Love the Video
@swiftarcade7632
@swiftarcade7632 4 жыл бұрын
Thank you. Zhaoyang. Its a balance between keeping it brief vs showing a lot of details. Thanks for sharing.
@48kozzy78
@48kozzy78 4 жыл бұрын
I liked your videos and respected your experiences, please keep making more videos. Thank you.
@swiftarcade7632
@swiftarcade7632 4 жыл бұрын
Will do Muhammed. Thanks for tuning in.
@jive24
@jive24 4 жыл бұрын
Nicely explained - very clear, thanks!
@swiftarcade7632
@swiftarcade7632 4 жыл бұрын
Glad you enjoyed it!
@Ivan_Maslov
@Ivan_Maslov 4 жыл бұрын
Great video. Would like to see more on that topic
@swiftarcade7632
@swiftarcade7632 3 жыл бұрын
On it!
@eudanilolira
@eudanilolira 4 жыл бұрын
Your video really helped me 😁
@swiftarcade7632
@swiftarcade7632 4 жыл бұрын
Awesome. Thanks for watching Danilo. Very welcome.
@IruAndOpa
@IruAndOpa 7 ай бұрын
This is cool.
@developer-juice-Khailenno
@developer-juice-Khailenno 3 жыл бұрын
lmao your right, closing and opening xcode magically made my model work.
@swiftarcade7632
@swiftarcade7632 3 жыл бұрын
Haha. Unfortunately its one of Xcodes greatest debugging techniques. Though it is getting better :)
@d7writes
@d7writes 4 жыл бұрын
Thanks for putting this together! I'm just starting to learn Core Data. Cheers! 😊
@swiftarcade7632
@swiftarcade7632 4 жыл бұрын
Very welcome. I plan on doing more in the new future. Stay tuned!
@evangelosspyromilios5994
@evangelosspyromilios5994 Жыл бұрын
08:29 shouldn't be something like save(employee) ? Seems the arg employee: Employee is not used within the updateEmployee func..
@oldschool84
@oldschool84 11 ай бұрын
Thanks for such a well-explained tutorial. I have one question regarding Core Data, how to connect it to the server. More specifically, do you have a tutorial where I can see how Core Data communicates with a server and pulls data online from an API and then writes it to Core Data, also to track changes on the server and synchronize them? Of course, it can also work in offline mode. It's very useful and specific, and a little different from this one.
@gjermundification
@gjermundification Жыл бұрын
Did you make a video on updating without updating any attributes?
@calumjb
@calumjb 4 жыл бұрын
Hi Jonathan, this is by far the most coherent tutorial on CoreData that I've come across. I have a couple of questions - When creating a new application with CoreData checked, the creation of the Persistent container takes place in App Delegate, and Apple recommends passing this container to other View Controllers as needed. Can you tell me the advantages of using the method you've described over that of Apple's recommended? Also, do I need to instantiate the class CoreDataManager anywhere?
@swiftarcade7632
@swiftarcade7632 4 жыл бұрын
Hi Calum. Thank you so much! Glad you enjoyed it. The main advantage of knowing how to set these things up from scratch is the ability to add CoreData after a project has already been created. If you are creating something new, by all means use the one Xcode provides. But by knowing how to create from scratch you have a little bit more flexibility in how you integrate CoreData into your project - which some projects need. Hope that helps!
@calumjb
@calumjb 4 жыл бұрын
@@swiftarcade7632 It did, thanks
@muhammadwaqas1219
@muhammadwaqas1219 4 жыл бұрын
Hi, I'm using Codable to decode json to NSManagedObject, decoding is success, but when save context is called app crashes with message encodeWithCoder:]: unrecognized selector sent to instance
@swiftarcade7632
@swiftarcade7632 4 жыл бұрын
Hmmm. Not sure off the top of my head. I plan on doing some Core Data stuff in the future. I am sure I will ran into want you ran into then.
@muhammadwaqas1219
@muhammadwaqas1219 4 жыл бұрын
@@swiftarcade7632 I have found its solution
@swiftarcade7632
@swiftarcade7632 4 жыл бұрын
@@muhammadwaqas1219 Great to hear! What was it?
@krawieck
@krawieck 4 жыл бұрын
good video but you should know that not everyone is watching this on 30 inch display
@swiftarcade7632
@swiftarcade7632 4 жыл бұрын
Thanks for the feedback Filip. I will try to make the text larger next time. Cheers.
Getting Started With NSFetchedResultsController
11:16
Swift Arcade
Рет қаралды 2,8 М.
Combine. Введение в фреймворк
21:46
SwiftBook
Рет қаралды 14 М.
Mom's Unique Approach to Teaching Kids Hygiene #shorts
00:16
Fabiosa Stories
Рет қаралды 38 МЛН
What it feels like cleaning up after a toddler.
00:40
Daniel LaBelle
Рет қаралды 91 МЛН
Core Data Codegen Explained
8:04
Swift Arcade
Рет қаралды 2,7 М.
Swift API Calls for Beginners (Networking) - Async Await & JSON
25:35
1. SwiftData CRUD Operations
42:40
Stewart Lynch
Рет қаралды 24 М.
The Story of Next.js
12:13
uidotdev
Рет қаралды 560 М.
CoreData в Swift. Разработка приложений
47:55
simpleDEV. Swift c нуля до бесконечности
Рет қаралды 8 М.
Look, this is the 97th generation of the phone?
0:13
Edcers
Рет қаралды 8 МЛН
Как удвоить напряжение? #электроника #умножитель
1:00
Hi Dev! – Электроника
Рет қаралды 1,1 МЛН
Это - iPhone 16!
16:29
Rozetked
Рет қаралды 419 М.
Yanlışlıkla Telefonumu Parçaladım!😱
0:18
Safak Novruz
Рет қаралды 817 М.
Nokia 3310 top
0:20
YT 𝒯𝒾𝓂𝓉𝒾𝓀
Рет қаралды 4,2 МЛН
#samsung #retrophone #nostalgia #x100
0:14
mobijunk
Рет қаралды 14 МЛН