 }
 
 public extension DefaultCoordinator {
-    public func showAlert(for error: Error, preferredStyle: UIAlertControllerStyle = .alert) {
+    public func showAlert(for error: Error, preferredStyle: AlertCoordinator.Style = .alert) {
         guard let viewController = self.viewController else {
             return
         }

        alertCoordinator.start()
    }

    public func showAlert(title: String?, message: String?, actions: [ErrorAction]? = nil, preferredStyle: UIAlertControllerStyle = .alert) {
        guard let viewController = self.viewController else {
            return
        }


    public func start() {
        let alert = type.alertController(preferredStyle: preferredStyle)
        if case .actionSheet(let source) = preferredStyle, let sourceView = source {
            switch sourceView {
            case .button(let button):
                alert.popoverPresentationController?.barButtonItem = button
            case .view(let view):
                alert.popoverPresentationController?.sourceView = view
            }
        }
        parentViewController.present(alert, animated: animated, completion: nil)
        viewController = alert
    }
