I write Swift and write about Swift, but most people prefer my dogs.
I write Swift and write about Swift, but most people prefer my dogs.
SwiftData's #Predicate macro looks like pure Swift but gets compiled into something else entirely. Some things crash at runtime, some silently return nothing, and !value can behave differently to value == false. 😅 https://www.hackingwithswift.com/quick-start/swiftdata/how-to-filter-swiftdata-results-with-predicates