---
title: "widgetSearchTermCleared(_:)"
framework: Notification Center
role: symbol
role_heading: Instance Method
platforms: [macOS 10.10+]
path: "notificationcenter/ncwidgetsearchviewdelegate/widgetsearchtermcleared(_:)"
---

# widgetSearchTermCleared(_:)

Tells the delegate that a user cleared the search field.

## Declaration

```swift
func widgetSearchTermCleared(_ controller: NCWidgetSearchViewController)
```

## Parameters

- `controller`: The widget’s search view controller.

## Discussion

Discussion When the delegate receives this message, it should stop the current search.

## See Also

### Responding to User Choices

- [widgetSearch(_:resultSelected:)](notificationcenter/ncwidgetsearchviewdelegate/widgetsearch(_:resultselected:).md)
