Editing SwiftData model objects - SwiftData SwiftUI Tutorial 1/5
Vložit
- čas přidán 21. 11. 2023
- Download the completed project here: github.com/twostraws/hackingw...
Other parts in Project 12:
Introduction: www.hackingwithswift.com/book...
1. Editing SwiftData model objects: This video
2. Filtering @Query using #Predicate: • Filtering @Query using...
3. Dynamically sorting and filtering @Query with SwiftUI: • Dynamically sorting an...
4. Relationships with SwiftData, SwiftUI, and @Query: • Relationships with Swi...
5. Syncing SwiftData with CloudKit: • Syncing SwiftData with...
Wrap up and challenges: www.hackingwithswift.com/book...
You can find the full set of videos, along with transcriptions, challenges, tests, and more, in my free 100 Days of SwiftUI course: www.hackingwithswift.com/100/...
Watch the full 100 Days of SwiftUI playlist here: • Understanding the basi... - Věda a technologie
🎉Great tutorial, thanks Paul. I hope you will show cloudkit integration with SwiftData in one of the next videos, too. In my experience, most tutorials about SwiftData skip this part. However, most production apps using core data (and in the future SwiftData) can’t do without cloudkit sync.
Swiftdata is only easier than coredata for very simple data.
As soon as you want to go into the cloud, things are much more complicated.
Let me ask a stupid question, is using cloudkit sync a mandatory policy if you use SwiftData when upload your app to the appstore?
@@congtuhuyet5502 no
Clean and quick tutorial, thanks!
Hello, App runs in the simulator but not in the Xcode preview.
Why?
Your link in description opens CoreData Introduction, not SwiftData one.
Seems like "transparent" is the wrong word (at about 2:58). Transparent would mean we can see how it works. It is invisible to us, not transparent.
Newbie question: Does everyone just hit return after typing each line to get the autocomplete to go away and then get to the next line? Just find it really annoying.
I am a new Swift Developer. I have coded the project as in the video and doubled checked the coding. I have no compile errors but the completed project runs but no User Screen ( Content View) displays and no errors show in the debugger. I simple show a blank white screen with no Heading Users in the Top Left of the IPhone Screen. I am using IOS 17.2 Minimum Deployments. In the debugger it appears to be related to the @Environment on line 13. It I set a break point there and it never goes into the view body. Where might I have an error? Thanks
Found a typing error. had a } out of sync and caused the error. the closure prevented the code execution.