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
UIViewController
for a parent controller.Declaration
Swift
public static func currentViewController(forParent parent: UIViewController? = nil) -> UIViewController?
Parameters
parent
The 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
root
The root
UIViewController
.