From a1ba1f6d032ffd2abd17529fbcd782c0200ff6dd Mon Sep 17 00:00:00 2001 From: Eduardo Speroni Date: Mon, 14 Feb 2022 16:37:38 -0300 Subject: [PATCH] fix(ios): force layout of view when changing the safe area insets (#9773) --- packages/core/ui/core/view/index.ios.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/core/ui/core/view/index.ios.ts b/packages/core/ui/core/view/index.ios.ts index acc7b116c..784b52f5e 100644 --- a/packages/core/ui/core/view/index.ios.ts +++ b/packages/core/ui/core/view/index.ios.ts @@ -197,6 +197,7 @@ export class View extends ViewCommon implements ViewDefinition { const boundsOrigin = nativeView.bounds.origin; const boundsFrame = adjustedFrame || frame; nativeView.bounds = CGRectMake(boundsOrigin.x, boundsOrigin.y, boundsFrame.size.width, boundsFrame.size.height); + nativeView.layoutIfNeeded(); this._raiseLayoutChangedEvent(); this._isLaidOut = true;