Editing SwiftData model objects - SwiftData SwiftUI Tutorial 1/5

Sdílet
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

Komentáře • 11

  • @DominikButz
    @DominikButz Před 6 měsíci +4

    🎉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.

    • @OttoFaerber
      @OttoFaerber Před 6 měsíci

      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.

    • @congtuhuyet5502
      @congtuhuyet5502 Před 5 měsíci

      Let me ask a stupid question, is using cloudkit sync a mandatory policy if you use SwiftData when upload your app to the appstore?

    • @OttoFaerber
      @OttoFaerber Před 5 měsíci

      @@congtuhuyet5502 no

  • @heestand_xyz
    @heestand_xyz Před 5 měsíci

    Clean and quick tutorial, thanks!

  • @LebenWerden
    @LebenWerden Před 9 dny

    Hello, App runs in the simulator but not in the Xcode preview.
    Why?

  • @clemensauer8597
    @clemensauer8597 Před 6 měsíci +1

    Your link in description opens CoreData Introduction, not SwiftData one.

  • @nroose
    @nroose Před 6 měsíci

    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.

  • @nroose
    @nroose Před 6 měsíci

    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.

  • @barrywest3270
    @barrywest3270 Před 5 měsíci

    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

    • @barrywest3270
      @barrywest3270 Před 5 měsíci

      Found a typing error. had a } out of sync and caused the error. the closure prevented the code execution.