Predicate Macro in Swift for filtering and searching
Predicate Macro in Swift for filtering and searching
www.avanderlee.com Predicate Macro in Swift for filtering and searching
The #Predicate Macro allows you to filter or search a collection of data using type-safe and readable higher-level Swift code.
![Predicate Macro in Swift for filtering and searching](https://programming.dev/pictrs/image/f6620d9b-adff-4575-b120-c9d6802c0c23.jpeg?format=webp&thumbnail=256)
#Predicate is a new Macro available since Swift 5.9 and Xcode 15, allowing you to filter or search a data collection. It can be seen as a replacement for the old-fashioned NSPredicate we’re used to from the Objective-C days.
0
comments