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.
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.
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.
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 ?
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.
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?🍿🍾
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.
Thanks!
Thank you so much
Thank you so much… 💯
Yet another very good explainer video
Thankyou Sir
Can you use this with a fetchDescriptor?
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.
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.
Excellent
#Expression is huge! Why is nobody else talking about this??
Wow! Super interesting! There is a lot of meat in this burger.
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 ?
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.
Finally in ios18 we can use swift data) until computer properties are all we have
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?🍿🍾
I was having issues with audio hijack. In my upcoming videos I resolve this issue.