---
title: enableEditing()
framework: uikit
role: symbol
role_heading: Instance Method
path: uikit/uidocument/enableediting()
---

# enableEditing()

Enables editing when it’s safe again to make changes to a document.

## Declaration

```swift
func enableEditing()
```

## Discussion

Discussion Subclasses should override this method to allow the user to edit the document when it’s safe to do so. This method override should be paired with an override of disableEditing(). The default implementation of this method does nothing.

## See Also

### Disabling and enabling editing

- [disableEditing()](uikit/uidocument/disableediting().md)
