SwiftData's #Predicate macro looks like pure Swift but gets compiled into someth...
Paul Hudson @twostraws@mastodon.social
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