Returns a bar button item that toggles its title and associated state between Edit and Done.
- iOS 10.0+
- Mac Catalyst 13.0+
- tvOS 10.0+
If one of the custom views of the
navigationItem property is set to the returned object, the associated navigation bar displays an Edit button if
NO and a Done button if
YES. The default button action invokes the
Adding Editing Behaviors to Your View Controller
A Boolean value indicating whether the view controller currently allows the user to edit the view contents.