---
title: widgetAllowsEditing
framework: notificationcenter
role: symbol
role_heading: Instance Property
path: notificationcenter/ncwidgetproviding/widgetallowsediting
---

# widgetAllowsEditing

A Boolean value indicating whether the widget can be edited by users.

## Declaration

```swift
optional var widgetAllowsEditing: Bool { get }
```

## Discussion

Discussion When a widget that supports editing sets this property to true, it automatically gets a system-provided button in its header area that users choose to begin or end editing. The default value of this property is false.

## See Also

### Supporting Editing

- [widgetDidBeginEditing()](notificationcenter/ncwidgetproviding/widgetdidbeginediting().md)
- [widgetDidEndEditing()](notificationcenter/ncwidgetproviding/widgetdidendediting().md)
