Episode #572

Querying data with the @Query Macro

Series: Leveraging SwiftData for Persistence

21 minutes
Published on February 2, 2024

This video is only available to subscribers. Get access to this video and 573 others.

In this episode we will provide a searchable interface using the @Query and #Predicate macros. We'll discuss how to use localizedStandardCompare instead of lowercase and other limitations of predicates. We'll also implement a solution for adding dynamic data to the query.

This episode uses Xcode 15.2.