---
title: handler
framework: xctest
role: symbol
role_heading: Instance Property
path: xctest/xctnsnotificationexpectation/handler-swift.property
---

# handler

An optional handler that performs custom evaluation of matching notifications.

## Declaration

```swift
var handler: XCTNSNotificationExpectation.Handler? { get set }
```

## See Also

### Custom Notification Evaluation

- [XCTNSNotificationExpectation.Handler](xctest/xctnsnotificationexpectation/handler-swift.typealias.md)
