XCTNSPredicateExpectation
An expectation that’s fulfilled when an NSPredicate is satisfied.
Declaration
class XCTNSPredicateExpectationOverview
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.