         context.saveItems()
     }
 }
-
-extension IndexPath {
-    static var zero: IndexPath {
-        return IndexPath(row: 0, section: 0)
-    }
-}

            let navigationController = UINavigationController(rootViewController: viewController)
            navigationController.navigationBar.prefersLargeTitles = true
            rootViewController.present(navigationController, animated: true, completion: nil)

            viewController.onDidTapCancelWhileEditing { item, viewController in
                viewController.dismiss(animated: true, completion: nil)
            }

            viewController.onDidTapSaveWhileEditing { item, viewController in
                viewController.dismiss(animated: true, completion: nil)

                guard case .editing(_, let indexPath) = action, !item.body.isEmpty, !items.isEmpty else {
                    items.append(item)
                    return
                }

                items[indexPath.row] = item
            }
        }


            // Copy body to pasteboard
            self?.pasteboard.string = newItem.body
        }

        tableViewController.onDidLongPress { indexPath, tableView in
