Predicate

public protocol Predicate

Defines logical conditions used to constrain a search either for a fetch or for in-memory filtering.

  • Returns a Boolean value that indicates whether a given object matches the conditions specified by the predicate.

    Declaration

    Swift

    func evaluate<T>(object: T) -> Bool