Is there any way to get class name of parent VC in present (child) UIViewController? My \'child\' VC (push) has two \'parent\'UIViewControllers, so I w
UIViewController
Add this extension and find parent view by it's type.
extension UIResponder { func next(_ type: T.Type) -> T? { return next as? T ?? next?.next(type) } }
How to use
self.next(UIViewController.self)