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:
parent
a9779b4546
commit
e3f3d32fe6
1 changed files with 1 additions and 0 deletions
|
|
@ -577,6 +577,7 @@ private:
|
|||
if (@available (iOS 13, *))
|
||||
window.windowScene = nil;
|
||||
|
||||
window.rootViewController = nil;
|
||||
[window release];
|
||||
window = nil;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue