diff --git a/VDS/Extensions/UIApplication.swift b/VDS/Extensions/UIApplication.swift index 52cf69d6..956bd3d5 100644 --- a/VDS/Extensions/UIApplication.swift +++ b/VDS/Extensions/UIApplication.swift @@ -10,6 +10,9 @@ import UIKit extension UIApplication { + /// Helper method to find the top most viewcontroller in the app + /// - Parameter controller: UIViewController to test against + /// - Returns: Found top most UIViewController public class func topViewController(controller: UIViewController? = UIApplication.shared.windows.first?.rootViewController) -> UIViewController? { if let nav = controller as? UINavigationController {