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 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