UIApplication
-
The function to get the top-most view controller of the application.
Usage Example
UIApplication.shared.topViewController
Declaration
Swift
public var topViewController :UIViewController?
The function to get the top-most view controller of the application.
Usage Example
UIApplication.shared.topViewController
Swift
public var topViewController :UIViewController?