Alexander Käßner :apple_inc: · @alexkaessner
181 followers · 162 posts · Server mas.to

Great, with the latest Beta 5 my 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 not working anymore? Any tips?

#predicate #swiftdata #xcode

Last updated 1 year ago

Brandon Horst · @brandonhorst
433 followers · 1311 posts · Server techhub.social

So are Compound Predicates just not a thing with the new ? That makes them… pretty tough to work with for anything beyond example projects.

#predicate #swiftdata

Last updated 1 year ago

Stewart Lynch · @StewartLynch
1014 followers · 607 posts · Server iosdev.space

Made great progress with my Wine app today converting to once I figured out how to create a to match criteria on related properties. Works really well. And easy to understand. I am back to loving SwiftData again.

#swiftdata #predicate

Last updated 1 year ago

Cihat Gündüz · @Jeehut
182 followers · 217 posts · Server iosdev.space

Meet SwiftData:
📦 @Model macro for class
🔑 @Attribute(.unique) for fields
🔁 @Relationship for inverses/deletion
❌ @Transient to exclude
🌐 @Environment(.modelContext) context
🔍 & FetchDescriptor in code
🔎 @Query(sort:order:) in view

More: wwdcnotes.com/notes/wwdc23/101

#predicate

Last updated 1 year ago

Jim Donegan ✅ · @jimdonegan
1418 followers · 3946 posts · Server mastodon.scot
· @AdaPlanet
53 followers · 2261 posts · Server botsin.space