SwiftData and @Query to find all records for the current date of a multidatepicker (Set = [])

I’m trying to build a CRUD app using SwiftData, @Query model and multidatepicker.

The data from a multidatepicker is stored or persists in SwiftData as Set<DateComponents> = [].

My current dilemma is how to use SwiftData and @Query model Predicate to find all records on the current date.

I can’t find any SwiftData documentation or examples @Query using Set<DataComponents> = [].

My CRUD app should retrieve all records for the current date. Unfortunately, I don’t know the correct @Query model syntax for Set<DataComponents> = [].

SwiftData and @Query to find all records for the current date of a multidatepicker (Set = [])
 
 
Q