This is exactly what I needed to preview some tutorial code and understand what I was doing without needing to run the simulator again every time. Thank you for such valuable information!👍
I can only agree with the other enthusiastic comments. This video is absolutely super helpful. Thank you so much for sharing your pioneer knowledge with us. ... I can't resist one comment: We all thought, this was a bug in the beta version ... funny ... turns out we still have the same stumbling blocks in Xcode 15.2.
This doesn't fix it. It's still broken. It actually takes a lot more boilerplate to make this sort of thing work for models with relationships. The BackyardBirds example app gets it working, but it doesn't let you choose specific records -- it just grabs the first one in the database.
Hi Tunde. I see your tutorials are amazing I’m a React Native engineer looking to get started with Swift. Pls which of your courses would you recommend I start with? Also do you have a video on roadmap? Thanks 🙏🏾
That’s great to hear & I’d don’t have a swift specific course yet. But i do have a SwiftUi course for beginners you can check out here Learn SwiftUI From Scratch In This Free SwiftUI Bootcamp (Beginner Level | SwiftUI Tutorial) ua-cam.com/play/PLvUWi5tdh92w0BP5gwJxgSJ12wKmYK9Y8.html
Another excellent tutorial! Thanks. On my test project, the app launches and loads the default JSON items as expected. But I get a crash in the preview. Any guess what might be happening? Thanks!
This crash is most likely linked to the fact that you haven't registered the container first like I cover in this video. You may want to check out the final sample code and compare what's missing from here. github.com/tunds/youtube-content-2023/tree/main/How%20To%20Use%20SwiftData%20with%20Preview%20%7C%20SwiftData%20Tutorial/Source%20Code
Thanks for the quick reply!! I checked the code carefully and mine is identical to what you have here. Nt sure as it runs correctly. Very strange. Thanks again for the. reply!@@tundsdev
Thanks again. I am using 8.5 as well. It is not a big deal, it is just the default JSON that is crashing the preview. The version without the default data works as expected. I will keep tinkering when I remove what I expect is the one variable that is crashing the preview, the code runs but does not display the default data as I expect the decode fails. Thanks!!@@tundsdev
@@holycrosscv It's crashing for me too. The solution in this video doesn't work for models that have relationships. It just crashes with no explanation. Might need to do something more involved like what's in the BackyardBirds example app, where it creates the records, discards them, and then queries for them using an @Query in a wrapper view.
This is exactly what I needed to preview some tutorial code and understand what I was doing without needing to run the simulator again every time. Thank you for such valuable information!👍
Glad it helped!
Excellent series Tuns...💯 Thank you so very much 🔥 Preview is special
This is fantastic man!
Glad you found it useful 👌🏾
This is the best and must useful SwiftData video yet! 👍great work! Tunde you are outstanding!
A super efficient way of moulding things.
Bro, thank you for all your great work and what you gives us 🙏
I appreciate that
Super helpful information. Thank you for making this!
That's truly helpful, Tunds, many Thanks👍
I can only agree with the other enthusiastic comments. This video is absolutely super helpful. Thank you so much for sharing your pioneer knowledge with us. ... I can't resist one comment: We all thought, this was a bug in the beta version ... funny ... turns out we still have the same stumbling blocks in Xcode 15.2.
Glad it was helpful!
This doesn't fix it. It's still broken. It actually takes a lot more boilerplate to make this sort of thing work for models with relationships. The BackyardBirds example app gets it working, but it doesn't let you choose specific records -- it just grabs the first one in the database.
Great video, Tunde! Insightful and entertaining as always 😊
Great video thanks.
thank you so much, it was a pain
Hi Tunde. I see your tutorials are amazing
I’m a React Native engineer looking to get started with Swift.
Pls which of your courses would you recommend I start with? Also do you have a video on roadmap? Thanks 🙏🏾
That’s great to hear & I’d don’t have a swift specific course yet. But i do have a SwiftUi course for beginners you can check out here
Learn SwiftUI From Scratch In This Free SwiftUI Bootcamp (Beginner Level | SwiftUI Tutorial)
ua-cam.com/play/PLvUWi5tdh92w0BP5gwJxgSJ12wKmYK9Y8.html
@@tundsdev thanks a lot 🙏🏾
Another excellent tutorial! Thanks.
On my test project, the app launches and loads the default JSON items as expected. But I get a crash in the preview. Any guess what might be happening?
Thanks!
This crash is most likely linked to the fact that you haven't registered the container first like I cover in this video. You may want to check out the final sample code and compare what's missing from here.
github.com/tunds/youtube-content-2023/tree/main/How%20To%20Use%20SwiftData%20with%20Preview%20%7C%20SwiftData%20Tutorial/Source%20Code
Thanks for the quick reply!! I checked the code carefully and mine is identical to what you have here. Nt sure as it runs correctly. Very strange. Thanks again for the. reply!@@tundsdev
If you run my project does it work? Also i’m using Xcode 15 B8 in this vid so it may be because you’re using a different version of Xcode possibly?
Thanks again. I am using 8.5 as well. It is not a big deal, it is just the default JSON that is crashing the preview. The version without the default data works as expected. I will keep tinkering when I remove what I expect is the one variable that is crashing the preview, the code runs but does not display the default data as I expect the decode fails. Thanks!!@@tundsdev
@@holycrosscv It's crashing for me too. The solution in this video doesn't work for models that have relationships. It just crashes with no explanation. Might need to do something more involved like what's in the BackyardBirds example app, where it creates the records, discards them, and then queries for them using an @Query in a wrapper view.