Contents

XCTNSPredicateExpectation

An expectation that’s fulfilled when an NSPredicate is satisfied.

Declaration

class XCTNSPredicateExpectation

Overview

When you use an instance of this class from Swift and await using fulfillment(of:timeout:enforceOrder:) rather than wait(for:), XCTest evaluates the associated predicate on the main actor.

Topics

Creating a Predicate-Based Expectation

Expectation Properties

Handling Predicate Resolution