This is such a great channel. The series on SwiftData is especially useful. However, for some reason, when trying to go back to them, youtube will never surface them for me in the search results. I hope this info is useful.
Awesome content as always! The WWDC videos did not give that much insight, thanks for clarify this topic! I guess SwiftData is making SwiftUI projects even more easy to setup.
Hahaha nooo. I am a beginner programmer and watched to the end only to find out I need to use Core Data lol. Oh well! Thank you for the tutorial anyways! Subscribed.
Thank you Karin. I don't quite understand the way swiftdata creates relationships between models. There is no foreign key to use and it works like magic when you add data. However, what about when you preload data? I am trying to combine this video with the one you made about importing data in JSON but the question is: How do you specify the relations of the imported data?
This was very interesting, and helpful. Thanks for the video! Have you ever tried looking at the underlying SQLite database (Core Data or SwiftData) using an SQLite manager like Native SQLite Manager? I wonder if that's doable and perhaps helpful to see how the data is actually getting stored in the underlying database. Perhaps you could do a video on that? Thanks Karin!
I did not look at the SQLight file. I am guessing it is very similar to how Core Data handles it. From what I saw at WWDC, you can have Core Data and SwiftData in the same project accessing the same SQLight file. From the documentation "Combining Core Data’s proven persistence technology and Swift’s modern concurrency features, SwiftData enables you to ...". The Core Data container and SwiftData container should work similar and the database handling should be the same.
Very Good (Sehr Gut) tutorial! Regarding using @Bindable instead of @Binding...Can I use @Bindable when dealing with a set; such as...@Binding var selectedObjects: Set? This works using @Binding but throws an error when I attempt to use @Bindable.
great talk! thanks! I have a question, a normal usage of db entries is to list them, on tap open a modal which can be used to "update" the entry data. Normally a save on the nav bar will persist the changes, otherwise an app closure or modal dismiss will not save them. In swiftdata update is performed automagically, and apparently there is no way to "upsert" an entry with saving a new object with same primary key (unique attribute in swiftdata) What should I do?
Thanks for your helpful content! Just wondering, what's the difference between explicitly defining the relationship using the @Relationship macro and the case you have here without using it? I'm having some difficulties using the macro and it works perfectly without.
I had problems with the relationship for many to many. It only works for optionals. Also if you want to use iCloud sync, all relationships must be optional.
Awesome stuff, however Realm seems a bit more intuitive than this. I'm going to give it a look, i'm just not sure if it's the best way of storing data.
This is such a great channel. The series on SwiftData is especially useful. However, for some reason, when trying to go back to them, youtube will never surface them for me in the search results. I hope this info is useful.
you are a life saver and amazing teacher
Great explanation on what is going on and how to use Swiftdata. Thank you!
Wow! Exciting stuff!
Another Great Tutorial.
Thanks for a great overview of using Swiftdata. Keep up the good content.
Great video, you're really clear and to the point. I agree this is better than the WWDC videos... Thanks!
Great, thank you Karin 🚀
Awesome!! Thanks for this!!
Thank you for the awesome explanation ❤
Thank you! Your explanation and examples helped me a lot! Much better than the WWDC videos.
This is so helpful!! It answered a lot of my questions. Thanks so much
Awesome! thanks
Super-helpful Karin, thank you.
Glad it was helpful!
Awesome content as always! The WWDC videos did not give that much insight, thanks for clarify this topic! I guess SwiftData is making SwiftUI projects even more easy to setup.
You are awesome ty!
helped me a lot, thank you very much
Thanks!
Thank you.
Would you be doing any videos on SwiftData migration?
Karin, can you please use dark theme for xcode when recording if possible, Thank you!
Hahaha nooo. I am a beginner programmer and watched to the end only to find out I need to use Core Data lol. Oh well! Thank you for the tutorial anyways! Subscribed.
Thank you Karin. I don't quite understand the way swiftdata creates relationships between models. There is no foreign key to use and it works like magic when you add data. However, what about when you preload data? I am trying to combine this video with the one you made about importing data in JSON but the question is: How do you specify the relations of the imported data?
Hi Karin, thank you so much for that introduction of Swift Data. Top as always. But how do you move and save a Todo item in the list? Greetings Toni
I'm brand new to swift today!
Should I use Swiftdata or older technology?
Thanks!
❤❤❤❤
This was very interesting, and helpful. Thanks for the video! Have you ever tried looking at the underlying SQLite database (Core Data or SwiftData) using an SQLite manager like Native SQLite Manager? I wonder if that's doable and perhaps helpful to see how the data is actually getting stored in the underlying database. Perhaps you could do a video on that? Thanks Karin!
I did not look at the SQLight file. I am guessing it is very similar to how Core Data handles it. From what I saw at WWDC, you can have Core Data and SwiftData in the same project accessing the same SQLight file.
From the documentation "Combining Core Data’s proven persistence technology and Swift’s modern concurrency features, SwiftData enables you to ...". The Core Data container and SwiftData container should work similar and the database handling should be the same.
Very Good (Sehr Gut) tutorial! Regarding using @Bindable instead of @Binding...Can I use @Bindable when dealing with a set; such as...@Binding var selectedObjects: Set? This works using @Binding but throws an error when I attempt to use @Bindable.
great talk! thanks!
I have a question, a normal usage of db entries is to list them, on tap open a modal which can be used to "update" the entry data. Normally a save on the nav bar will persist the changes, otherwise an app closure or modal dismiss will not save them.
In swiftdata update is performed automagically, and apparently there is no way to "upsert" an entry with saving a new object with same primary key (unique attribute in swiftdata)
What should I do?
Thanks for your helpful content! Just wondering, what's the difference between explicitly defining the relationship using the @Relationship macro and the case you have here without using it? I'm having some difficulties using the macro and it works perfectly without.
Given that the app data is persisted to the SQLIte db, is it possible to create and use a SQLite view in SwiftUI?
How can we create sections for same dates using creationdate instead of isDone
Hi, i am still searching how to save swiftdata on iCloud container
Thanks! Why did you make the tags array property optional?
I had problems with the relationship for many to many. It only works for optionals.
Also if you want to use iCloud sync, all relationships must be optional.
@@SwiftyPlace Could the tags array not be declared as an empty array instead of optional?
Hi, how I can use onMove modifier on todos?
Awesome stuff, however Realm seems a bit more intuitive than this. I'm going to give it a look, i'm just not sure if it's the best way of storing data.
May I ask how so?
Thanks!