Great, with the latest #Xcode Beta 5 my #SwiftData Queries aren’t working anymore. I’m aware of the issue with the explicit model type information for filter: and sort: … fixed that already.
But why isn’t this simple Query with a #Predicate not working anymore? Any tips?
So are Compound Predicates just not a thing with the new #Predicate? That makes them… pretty tough to work with for anything beyond example projects. #SwiftData
Made great progress with my Wine app today converting to #SwiftData once I figured out how to create a #Predicate to match criteria on related properties. Works really well. And easy to understand. I am back to loving SwiftData again.
Meet SwiftData:
📦 @Model macro for class
🔑 @Attribute(.unique) for fields
🔁 @Relationship for inverses/deletion
❌ @Transient to exclude
🌐 @Environment(.modelContext) context
🔍 #Predicate & FetchDescriptor in code
🔎 @Query(sort:order:) in view
#RaymondTallis - What is #Truth?
https://www.youtube.com/watch?v=WLhTG7etzlc&ab_channel=CloserToTruth
#Philosophy #Logic #PhilosophyOfLogic #Assertions #States #StatesOfAffairs #Belief #JTB #JustifiedTrueBelief #Pragmatism #Minimalism #Predicate #Predicates #Relativism #Noumenal #Ontological #Kant #Kantian #CloserToTruth #RobertKuhn
#RobertKuhn #CloserToTruth #kantian #kant #ontological #noumenal #relativism #predicates #predicate #minimalism #pragmatism #justifiedtruebelief #jtb #belief #statesofaffairs #states #assertions #philosophyoflogic #logic #philosophy #truth #RaymondTallis
How do I handle uninitialized data in a dynamic predicate in Ada? https://stackoverflow.com/questions/70311664/how-do-i-handle-uninitialized-data-in-a-dynamic-predicate-in-ada #ada #programming #predicate #gnat #ada
#ada #programming #predicate #gnat