MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / showInspector

Method showInspector

packages/core/ui/split-view/index.ios.ts:286–296  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

284 }
285
286 showInspector(): void {
287 if (!this.viewController) return;
288 // Guard for older OS versions by feature-detecting inspector-related API
289 if (this.viewController.preferredInspectorColumnWidthFraction !== undefined) {
290 this.viewController.showColumn(UISplitViewControllerColumn.Inspector);
291 this.notifyInspectorChange(true);
292 this._invalidateAllChildLayouts();
293 // Attach button after a short delay to ensure the column is visible
294 setTimeout(() => this.attachInspectorButton(), 100);
295 }
296 }
297
298 hideInspector(): void {
299 if (!this.viewController) return;

Callers 3

_applyPreferencesMethod · 0.95
toggleInspectorMethod · 0.45
toggleInspectorMethod · 0.45

Calls 4

notifyInspectorChangeMethod · 0.95
attachInspectorButtonMethod · 0.95
setTimeoutFunction · 0.50

Tested by

no test coverage detected