SwiftData Updates Part 2: Dynamic Sorts and filters with Predicate expressions

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ม.ค. 2025

ความคิดเห็น • 16

  • @cruiseqe2
    @cruiseqe2 3 หลายเดือนก่อน

    This looks extremely useful, but I think I may have to watch the video a few times before I can fully understand this 'expression' stuff. That is all new to me! Great informative video. Thanks.

  • @sggraham64
    @sggraham64 2 หลายเดือนก่อน

    Thanks!

    • @StewartLynch
      @StewartLynch  2 หลายเดือนก่อน

      Thank you so much

  • @Mahadev-x7u
    @Mahadev-x7u 2 หลายเดือนก่อน +1

    Thank you so much… 💯

  • @stellusctf6479
    @stellusctf6479 3 หลายเดือนก่อน

    Yet another very good explainer video
    Thankyou Sir

  • @ChristopherJRoura
    @ChristopherJRoura หลายเดือนก่อน

    Can you use this with a fetchDescriptor?

  • @indiekiduk
    @indiekiduk 3 หลายเดือนก่อน +1

    A nice improvement would be to move the code to build the Query into a computed var in the parent View then you only need to pass the Query param in instead of those 3 params.

    • @StewartLynch
      @StewartLynch  3 หลายเดือนก่อน

      I think I would still have to pass in predicate and sortdescriptors separatately and since the query is actually being executed in that view, I prefer to have the code in that view rather than in the parent. Just my preference.

  • @wallacewittkoff8123
    @wallacewittkoff8123 3 หลายเดือนก่อน

    Excellent

  • @didgeoridoo
    @didgeoridoo 3 หลายเดือนก่อน

    #Expression is huge! Why is nobody else talking about this??

  • @dibjr
    @dibjr 4 หลายเดือนก่อน

    Wow! Super interesting! There is a lot of meat in this burger.

  • @AkimboFennec
    @AkimboFennec 2 หลายเดือนก่อน

    I wanted to ask a question. Core Data has ceratin features like NsMergeTrumpByObject and TrumpByStorage, and an ability to build complex predicates. as of ios 18, can swift data perform most of these operations or not yet? For example, i heard about #Expression macro and apparently they say that you can build complex predicates with it. So would you say that SwiftData as of ios 18 is production ready ?

    • @StewartLynch
      @StewartLynch  2 หลายเดือนก่อน

      That will all depend on the complexity of your code and your requirements. It does not have all of the features of CoreData yet, but not all projects need that extra functionality. The complex #Expression macro that I demonstrate in this video does give you more options instead of filtering and sorting in memory.

  • @ShooMPozitiV
    @ShooMPozitiV 3 หลายเดือนก่อน

    Finally in ios18 we can use swift data) until computer properties are all we have

  • @obelix8477
    @obelix8477 3 หลายเดือนก่อน

    Is it just me? Why do I hear random popping noise in your vids? I thought it was synchronized with mouse clicks, but often the pop happens after you make a selection. Stewart, can you investigate?🍿🍾

    • @StewartLynch
      @StewartLynch  3 หลายเดือนก่อน +1

      I was having issues with audio hijack. In my upcoming videos I resolve this issue.