Querying SwiftData with a date-based Predicate

I was working on a project where I needed to query items from swift data that occurred on a specific date. When dealing with dates, my first instinct is usually to reach for the Calendar object to do all the heavy lifting for me. This lead me to have something like: private func fixturesHappeningToday () -> [ LocalFixture ] { let predicate = # Predicate < LocalFixture > { item in Calendar .…