I tried iOS 15 RC version in my device iPhone 12, and found when I call window.makeKeyAndVisible, sometimes the window will change to black and back immediately.
It happened only on real device not simulator, so I tried to create a sample code to reproduce this issue, here is sample code from github https://github.com/suindong/MakeKeyIssue
In this sample code it will change keyWindow randomly, and in the video(Github readme) you can see window sometimes change to hidden, not sure how to fix it.
Does anyone face same issue in iOS 15?