---
title: widgetDidBeginEditing()
framework: notificationcenter
role: symbol
role_heading: Instance Method
path: notificationcenter/ncwidgetproviding/widgetdidbeginediting()
---

# widgetDidBeginEditing()

Called when a user chooses the widget’s begin editing button.

## Declaration

```swift
optional func widgetDidBeginEditing()
```

## Discussion

Discussion This method can be called when widgetAllowsEditing is true.

## See Also

### Supporting Editing

- [widgetAllowsEditing](notificationcenter/ncwidgetproviding/widgetallowsediting.md)
- [widgetDidEndEditing()](notificationcenter/ncwidgetproviding/widgetdidendediting().md)
