<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIViewController/isEditing",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIViewController(py)editing"
  },
  "title" : "isEditing"
}
-->

# isEditing

A Boolean value indicating whether the view controller currently allows the user to edit the view contents.

```
var isEditing: Bool { get set }
```

## Discussion

If <doc://com.apple.documentation/documentation/Swift/true>, the view controller currently allows editing; otherwise, <doc://com.apple.documentation/documentation/Swift/false>.

If the view is editable and the associated navigation controller contains an edit-done button, then a Done button is displayed; otherwise, an Edit button is displayed. Clicking either button toggles the state of this property. Add an edit-done button by setting the custom left or right view of the navigation item to the value returned by the [`editButtonItem`](/documentation/UIKit/UIViewController/editButtonItem) method. Set the [`isEditing`](/documentation/UIKit/UIViewController/isEditing) property to the initial state of your view. Use the [`setEditing(_:animated:)`](/documentation/UIKit/UIViewController/setEditing(_:animated:)) method as an action method to animate the transition of this state if the view is already displayed.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)