Skip to content

Commit e3f3d32

Browse files
committed
UIViewComponentPeer: Remove rootViewController from old window before adding it to new window
This fixes an issue where the view would disappear and the window would become black when the window scene changed, e.g. because screen sharing was started.
1 parent a9779b4 commit e3f3d32

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/juce_gui_basics/native/juce_UIViewComponentPeer_ios.mm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,7 @@ void updateSceneForWindow()
577577
if (@available (iOS 13, *))
578578
window.windowScene = nil;
579579

580+
window.rootViewController = nil;
580581
[window release];
581582
window = nil;
582583
}

0 commit comments

Comments
 (0)