     }
     
     /**
-        Show a native view from a cordova app.
-        If exists a navigationController associated with your cordova
-        UIViewController, back to your main view.
-
-        - Parameters:
-            - command: Get arguments and callback status from JS
-    */
+     Show a native view from a cordova app.
+     If exists a navigationController associated with your cordova
+     UIViewController, back to your main view.
+     
+     - Parameters:
+     - command: Get arguments and callback status from JS
+     */
     func show(_ command: CDVInvokedUrlCommand) {
         
         var pluginResult = CDVPluginResult(status: CDVCommandStatus_ERROR)
         
         var className = command.argument(at: 0) as? String ?? ""
         var storyboardName = ""
+        var viewController: UIViewController? = nil
         
         if command.arguments.count > 1 {
             

            if (self.viewController.navigationController?.viewControllers.count)! > 1 {
                self.viewController.navigationController?.popViewController(animated: true)
            }else{
                self.viewController.navigationController?.pushViewController(UIViewController.init(nibName: className, bundle: nil), animated: true)
            }
            
            pluginResult = CDVPluginResult(status: CDVCommandStatus_OK)
        }else{
            
            let viewController: UIViewController
            
            if Bundle.main.path(forResource: storyboardName, ofType: "storyboardc") != nil
                && storyboardName.characters.count > 0 {

import UIKit

enum InstantiateViewControllerError: Error  {
    case notFound(String)
    case nameNotDefined(String)
}

///
/// IOS implementation for Native view actions from cordova apps
