👋 Our "Launch Your First App" program will help you build up your iOS skills to publish your very own feature rich app even if you’re a beginner starting from scratch. codewithchris.com/plus
I am making an iOS app that uses the camera to capture a flower image, classifies it using a pre-trained Core ML model, retrieves additional information from Wikipedia using an API request, and updates the UI accordingly. I want to create a core data local database with machine learning capabilities inside it. That's why I am here watching this tutorial. Very nicely explained all the steps. I will re-watch it again to build a better understanding. Thank you, please don't stop making tutorials.
Hey Chris, I am new to Swift and Core Data but I am fairly proficient Java Developer - I must say your lessons and incredibly informative and you have a very unique ability to cater to both experienced and new developers. I truly enjoy watching your videos! They are amazing!!! Thank you very much!
I was checking several youtube videos and series for learning to work with core data, all of them seemed either to simple or confusing because they jumped to a huge code base really quickly without explaining the core data properly first. Your explanation is perfect and easy to follow. Thanks.
Thank. It helped to refresh the memory very quickly regarding CoreData. Very simple and straightforward, and most importantly without unnecessary water. The only thing I want to add is that there is not enough demonstration of how to bind an array to one object, for example, a contact to which a list of messages is attached, because developers, including beginners, often face this. Thanks for the guide!
Could you please add some more UI elements to show the structure of the family? That should be very helpful for beginners to learn how Core Data works. Thanks!
Hey Chris, i finished my app today. But i dont know what i can use for data protection. I am using Firebase and all that stuff. Maybe you can make a video on that? I know a lot of people facing this problem👌🏻 Have a great day!
Hello, using Firebase Auth is data protection is in itself, yo u can also limit data access based on firebase rules, i suggest checking firebase documentation for it or maybe some articles - Francis
Chris, thank you for providing such an in-depth and informative tutorial on Core Data. It would be very helpful if you could provide us with the code that you have created in these tutorials. Cheers.
Hello, kindly post your question in our CodeCrew forum so that our technical support staff can assist you. Go here: codecrew.codewithchris.com/ Thank you! -Arthur
Great tutorial and I have to really appreciate the time and effort that has gone into making this so detailed. I have used CoreData with Obj C some time ago so I wanted to refresh my knowledge and I learned so many new things. I would say one thing I was hoping to see was about the migrations if we need to change the DataModel when shipping a new version of the app - does this still need to be done or has Apple taken made this easier somehow ?
"Hello, supposedly all the datamodels or the ""set-up"" should be the same accross different versions because its an apple ""core"" database.. however, do remember that this is a local only database,, so if the user decides to change phones then the data won't get carried over, for that it would be ideal to check out cloud solutions like Firebase. - Francis"
Wow I also gave up on CoreData after watching boring apple presentations then found this tutorial and it's absolutely a breeze to understand the concept now
Love this tutorial. Really easy to follow. I have to build a video tutorial for a project at my office. Do you mind if I ask what tool(s) you use to make these? I love how you're able to fit such a large screen into a smaller window with scrolling rather than making things cramped or tiny.
Excellent delivery of the concepts in a simple way. Amazing presentation 👌. It would be really great if you could make a video on core data multithreading. Thank You.
Amazing tutorial. Everything was explained in a great way and very understandable. Thanks for the effort to make this long course. Looking forwards to more videos!
It would be great if you could also show how to modify an existing model when implementing Core Data in an existing project, that already has a data model with structs that conform to Codable for json parsing.
Thank you very much for making so informative series so that beginners can learn without much difficulty. You are really one of the best developer as well as tutor indeed. ✌️😄👏
Thanks for the tutorial. It was very good! @43:17 You say we're calling self.context.save() from a background thread. Are you sure this is correct? UIAlertAction is being called as a response to a UI event on the main thread, thus it should be guaranteed to call the handler on the main thread, not a background thread. Cheers.
Hello, kindly post this question in our CodeCrew forum so that our tech support staff can assist you. Go here: codecrew.codewithchris.com. Thank you! -Arthur
Hi there! This video is the stitched version of all the lessons in the Core Data series. So if you want to watch the Core Data series in one seating, this is it. - Kat
Hey Chris, first, I have to say your tutorial is so helpful, thanks for providing so many wonderful videos. Then, I have a question on core data, is that only stored in local machine? could the data be shared with other users? for example, if I try to develop an app there has user login, and can I use core data to store all user info? or I have to let my app connect a real db, sql?
Hello. the libraries to be used should be generally the same, the main difference would be how data is displayed and afterwards, but basically it uses the same base framework (UIKit) - Francis
Thanks for this tutorial, it's explained so easy to understand. I have a question. I am a beginner and I am currently developing a webshop application. Data is pulled from the Magento backend, via GraphQL and the Apollo client. I need the application to download all data about products and prices while it is online, but to be able to work later in offline mode as well. So when he returns to the online mode, to withdraw all changes and if there are any, to write them in Core Data. Is Core Data a good choice for such a thing?
Hey Chris, really great video. I'm a bit stuck as how to use Core Data with SwiftUI instead of Storyboards. In my project I have a Persistence.swift file and I've been trying to make sense of it but can't find much information about it online, any help or pointers would be appreciated.
"Hello, it should be possible to link your persistence file but on the appdelegate side so it because globally usable i suggest creating a blank swiftui project with coredata enabled so you can see the appdelagate code that you need, then modify it to your preference - Francis"
@CodeWithChris As pr usual, well taught. Here is my question 14:22 When do you think this is the right way to do it? And when do you think you should rather choose related records through a relationship/edge?
"Hello, it depends on the design really, in database design it would be ideal to make a separate table and make a relationship as it would make things more scalable and easier to track and have one mega table full of information that may be blank - Francis"
Hello Chris, Please what software do you use to create the animations in your videos. And which software do you use to create your thumbnail. Please answer
What website or app do you use to get images that you use in your Xcode projects and how do you make the quality of those images differ for different phones???
Hi Chris, I’m confused to be honest as I see lots of videos to create an app. I need your guidance how can I start creating my own app from start to finish based on my idea that I want to implement for my own business. How to start ? Knowing the basics to stater to advance. Do you have something as a step by step process tell advance and tell I am able to launch my app ??? Please advice
Hi chris. It is good explaination in coredata. But In advance I am or most people use SwiftUI not storyboard every more. It is over 2 years since I've seem it again. More codes and confused.... I like the layout in coredata person relation to family. But not storyboard. If I used swiftUI, please show me CRUD in coredata for swiftUI. Look forward to see it Thanks. Toan Nguyen
Soon we will focus more on SwiftUI. We will do both actually as Storyboard is beginner friendly. Meanwhile, I found a couple of interesting tutorials for you on Google, feel free to search for more. www.hackingwithswift.com/books/ios-swiftui/how-to-combine-core-data-and-swiftui www.raywenderlich.com/9335365-core-data-with-swiftui-tutorial-getting-started developer.apple.com/forums/thread/650876 @AdrienVillez
This is why I wish Swift worked nicely with C++. I like being able to create my own persistent storage libraries and it’s so much easier and less convoluted in C++ than anything you can do with Swift.
Hello, there might be some 3rd party library/framework that can be used to run or add c++ files on your project, i suggest looking at options in github or cocoapods - Francis
Not often you hear something is "less convoluted" in C++. Usually, it's very much the opposite case. But with CoreData, unfortunately, it retains its reference baggage from ObjectiveC. We need a new SwiftDataStorage framework from Apple, that fundamentally uses value types, with Swift idioms, and a SwiftUI-like API.
The advice regard using and INT64 is incorrect. An INT64 will take up 4 times the disk space, 4 times the bandwith etc over an INT16. An INT 16 will also only take up 2 bytes of memorys, while and INT 64 will take 8 bytes. The achritecture of the chip doesn't reflect the storage requirement of the object. Hence why an 8 bit image only takes up x, a 16 bit image takes up x, a 24 bit image takes up x etc.
Awsome this tutorial. There is some xcode tool (i use 10.3) or third party to check data stored in my entities?? or only i can see them from application who create them??. There are entity constraints??
Hello, im not sure if there are third party because its a core apple feature but i guess there should be some cocoapods or github projects that you can find for it - Francis
Hello, this was because recording the tutorial is done after the whole thing has been made by the team, which is then "redone or rerecorded" for the. video, which means that Ted as a sample when the app was tested before recording - Francis
@CodeWithChris long time follower! I love your content and lessons. Oh, and I love your personality! You're made to do this. Question for you. Are you planning on doing a video on CloudKit and CloudKit JS? I'm very interested in that database because it matches what I'm looking for in the long term. Are you willing and able to do videos on that, please?
Thanks a ton, Rylan! We appreciate you! Noted on your suggestion. You can also post your questions in our forum community so that our technical support staff can give you more insights about this topic. Go here: codecrew.codewithchris.com. Cheers! :-) -Arthur
I'm pretty sure the architecture's data width has nothing to do with the size of a Swift Int, but I could be wrong. I am not a Swift expert. I can say for sure that it is irrelevant in C.
Hi thanks for your video, as always. I can't find any tutorial on how to pre populate core data with a .sqlite that had allowed external storage. And load those images that were in external storage.
"Hello, you can just probably ""query"" the data table from sqllite and just insert the new data into CoreData.. it should preserve the data or at least the locations of the images so there should be no problems accessing it - Francis"
@@CodeWithChris Thanks for your reply, I actually copied the image reference directory (called: _SUPPORT) and the .sqlite in the app bundle and when launching for the first time, programmatically copy from bundle to library/application support