From 5afeee071c1e95de03290fa25c28e48a6a2a1d59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hans=20Kn=C3=B6chel?= Date: Thu, 4 Aug 2022 20:28:17 +0200 Subject: [PATCH] fix(ios): fix tabgroup layout on iOS 16+ (#13522) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(ios): fix tabgroup layout on iOS 16+ * fix: fix linting (of course …) --- iphone/Classes/TiUITabGroup.m | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/iphone/Classes/TiUITabGroup.m b/iphone/Classes/TiUITabGroup.m index 3443d523322..c71639887e8 100644 --- a/iphone/Classes/TiUITabGroup.m +++ b/iphone/Classes/TiUITabGroup.m @@ -618,9 +618,13 @@ - (void)setTabs_:(id)tabs - (void)open:(id)args { - UIView *view = [self tabController].view; - [view setFrame:[self bounds]]; - [self addSubview:view]; + TiThreadPerformOnMainThread( + ^{ + UIView *view = [self tabController].view; + [view setFrame:[self bounds]]; + [self addSubview:view]; + }, + NO); } - (void)close:(id)args