Closed Janglinator closed 6 years ago
extension UINavigationController {
func popToFirstViewController<T: UIViewController>(ofType: T.Type, animated: Bool) { for vc in self.viewControllers { if let _ = vc as? T { self.popToViewController(vc, animated: animated) } } }
}
extension UINavigationController {
}