(frame: CGRect)
| 316 | } |
| 317 | |
| 318 | protected applySafeAreaInsets(frame: CGRect): CGRect { |
| 319 | if (!__VISIONOS__ && SDK_VERSION <= 10) { |
| 320 | return null; |
| 321 | } |
| 322 | if (this.iosIgnoreSafeArea) { |
| 323 | return frame; |
| 324 | } |
| 325 | if (!this.iosOverflowSafeArea || !this.iosOverflowSafeAreaEnabled) { |
| 326 | return IOSHelper.shrinkToSafeArea(this, frame); |
| 327 | } else if (this.nativeViewProtected && this.nativeViewProtected.window) { |
| 328 | return IOSHelper.expandBeyondSafeArea(this, frame); |
| 329 | } |
| 330 | |
| 331 | return null; |
| 332 | } |
| 333 | |
| 334 | public getSafeAreaInsets(): Position { |
| 335 | const safeAreaInsets = this.nativeViewProtected && this.nativeViewProtected.safeAreaInsets; |
no test coverage detected