Thanks for the quick answer!
But my question evolved since I wrote this:
While the predicate I created (quoted above) for searching a String works great. My other attribute is a Date, but when I try to search on the date field nothing works:
.searchable(text: $searchText)
.onChange(of: searchText) { _, text in
evnts.nsPredicate = text.isEmpty ? nil : NSPredicate(format: "eventDate CONTAINS %i " , text )
also %@ doesn't work either
I did read up on CompoundPredicates here:
https://stackoverflow.com/questions/31708540/swift-combining-predicates But since one of my predicates doesn't work on it's own, I don't see how combining them will magically work.
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags: