 
 /// Presents a view controller modally.
 public protocol ModallyPresentable {
-    /// A boolean property to determine whether to add cancel bar
-    /// button item to `self`.
-    ///
-    /// The default value is `true`.
-    var addCancelButtonWhenModallyPresented: Bool { get }
+    /// Returns a bar button item that dismisses `self`.
+    func dismissBarButtonItem() -> UIBarButtonItem
 
     /// Returns the class used to create the `UINavigationController` instance
     /// for this view controller.

            return
        }

        if addCancelButtonWhenModallyPresented {
            navigationItem.leftBarButtonItem = cancelButtonItem()
        }

        let NavigationController = navigationControllerClassWhenModallyPresented


            presentingViewController?.present(nvc, animated: true)
        }
    }
}
