ApplicationUtil
public enum ApplicationUtil
Undocumented
-
Boolean describing whether the application is executing within an app extension.
Declaration
Swift
public static var isExecutingInAppExtension: Bool { get } -
Simple access to the shared application when not executing within an app extension.
Declaration
Swift
public static var sharedApplication: UIApplication? { get } -
Returns the current
UIViewControllerfor a parent controller.Declaration
Swift
public static func currentViewController(forParent parent: UIViewController? = nil) -> UIViewController?Parameters
parentThe parent
UIViewController. If none provided, will attempt to discover the most relevant controller. -
Attempt to find the top-most view controller for a given root view controller.
Declaration
Swift
public static func currentViewController(withRootViewController root: UIViewController?) -> UIViewController?Parameters
rootThe root
UIViewController.
View on GitHub
ApplicationUtil Enumeration Reference