1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-08 23:24:19 +00:00

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.
This commit is contained in:
reuk 2025-11-19 14:09:49 +00:00
parent a9779b4546
commit e3f3d32fe6
No known key found for this signature in database

View file

@ -577,6 +577,7 @@ private:
if (@available (iOS 13, *))
window.windowScene = nil;
window.rootViewController = nil;
[window release];
window = nil;
}