---
title: widgetDidEndEditing()
framework: notificationcenter
role: symbol
role_heading: Instance Method
path: notificationcenter/ncwidgetproviding/widgetdidendediting()
---

# widgetDidEndEditing()

Called when a widget’s editing session ends.

## Declaration

```swift
optional func widgetDidEndEditing()
```

## Discussion

Discussion This method is called when a user chooses the widget’s end editing button or when editing is deactivated because editing begins in a different widget. This method can be called when widgetAllowsEditing is true.

## See Also

### Supporting Editing

- [widgetAllowsEditing](notificationcenter/ncwidgetproviding/widgetallowsediting.md)
- [widgetDidBeginEditing()](notificationcenter/ncwidgetproviding/widgetdidbeginediting().md)
