 	
 	/// This case performs that current transition must be present.
 	case present
+    
+    /// This case performs that current transition must be pop to root.
+    case popToRoot
 }
 
 

		self.postLinkAction = completion
	}
	
}



			}
		}
	}
    
    
    func close() -> CloseTransitionPromise {
        let promise = CloseTransitionPromise(root: self)
        
        // Default close transition action.
        promise.postLintAction {
            if let navController = self.navigationController {
                navController.popViewController(animated: true)
            } else {
                self.dismiss(animated: true, completion: nil)
            }
        }
        
        return promise
    }
}

