MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / getRootViewController

Function getRootViewController

packages/core/utils/native-helper.ios.ts:170–177  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

168}
169
170function getRootViewController(): UIViewController {
171 const win = getWindow();
172 let vc = win && win.rootViewController;
173 while (vc && vc.presentedViewController) {
174 vc = vc.presentedViewController;
175 }
176 return vc;
177}
178
179export function getWindow(): UIWindow {
180 let window: UIWindow;

Callers 1

setWindowBackgroundColorFunction · 0.85

Calls 1

getWindowFunction · 0.70

Tested by

no test coverage detected