How To Save A Struct In SwiftData | SwiftData Tutorial | #14

Поділитися
Вставка
  • Опубліковано 1 жов 2024

КОМЕНТАРІ • 10

  • @ericagredo5010
    @ericagredo5010 5 місяців тому

    Hi! I don't see the Github repo linked in the description. Any chance you can send me that link? I am having issues with my SwiftData code using Codable structs

  • @andremethot2787
    @andremethot2787 7 місяців тому +2

    Great vidéo as always. I would live to se a vidéo on saving optionset and measurement unit in swiftdata.

    • @tundsdev
      @tundsdev  7 місяців тому +1

      Thanks for the idea!

  • @stevethewindsurfer8911
    @stevethewindsurfer8911 2 місяці тому

    Another warning: It looks like you can't filter or sort enums in SwiftData.

    • @tundsdev
      @tundsdev  2 місяці тому

      Hey this is a known issue that I cover in a different video, and isn't the purpose of this video either. This isn't supported in SwiftData instead you have to use the raw value of the enum and and your properties data type in your model must be the same and not your enum type

    • @stevethewindsurfer8911
      @stevethewindsurfer8911 2 місяці тому

      @@tundsdev Thanks! Yes this really seems to be the only solution as of today. I hope they improve on that next year.

  • @thomasfahlke4253
    @thomasfahlke4253 7 місяців тому

    Thank you very much for your work. Could you please make the recource available?

  • @eduardstreltsov3961
    @eduardstreltsov3961 8 місяців тому

    ahaha. that's the start

  • @Ravikanth_007
    @Ravikanth_007 7 місяців тому

    Great video, Thanks

    • @tundsdev
      @tundsdev  7 місяців тому

      Glad you liked it!