()
| 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; |
no test coverage detected