One Logo Pool Ball
Foundation · IOS API REFERENCE

PredicateBindings

struct · iOS 17.0+ · SDK 27.1

struct PredicateBindings

A mapping from a predicates's input variables to their values. If you define a custom predicate expression type, you must propagate the predicate's bindings to its subexpressions. If you define a custom predicate type, you must create an instance of this structure, populate it with the predicate's variables, and propagate it throughout the expression tree.

Members (2)

method · iOS 17.0+

binding

TypeScript
binding(variable: PredicateExpressions_Variable<unknown>, value: unknown): PredicateBindings
Swift declaration
func binding<T>(_ variable: PredicateExpressions.Variable<T>, to value: T) -> PredicateBindings
subscript · iOS 17.0+

subscript

TypeScript
subscript(variable: PredicateExpressions_Variable<unknown>): (unknown) | null
Swift declaration
subscript<T>(variable: PredicateExpressions.Variable<T>) -> T? { get set }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

PredicateBindings.init(_:)

Swift parameter packs cannot cross the bridge.

All Foundation types →