NSPredicate

Undocumented

  • A generic convenience initializer that accepts a Reflectable type and a builder closure that allows you to construct includers that describe the resulting NSPredicate instance.

    • Parameters:
    • type: The Reflectable class type that you’ll be querying against. The type you supply here is what PrediKit will inspect to ensure the property names you specify in your includers are contained in that class’ property list.
    • builder: A closure that you use to generate includers that construct each subpredicate in the created NSPredicate

    Declaration

    Swift

    convenience init<T: Reflectable>(_ type: T.Type, builder: ((_ includeIf: PredicateBuilder<T>) -> Void))