Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Please select one of the following
Summary
We hit a bug downstream with the existing implementation where we use Scenes in our app which require alerts to be presented from a window associated with the app's UIWindowScene.
Currently without this fix, when we attempt to create a new UIWindow and UIViewController to present a modal alert, that UIWindow isn't associated with any of the app's scenes which results in the app silently failing to show the alert.
The fix is to more or less revert the incriminating part of this change. This is the least intrusive way to make a safe fix, but once this is in, I'd like to make a fuller fix where we find a reasonable way to pair the new UIWindow with the app's scene and continue using that instead.
Changelog
[iOS] [Alert] - Fix modal alert issue using UIScenes
Test Plan
Tested in a downstream app and this is required to show an alert in response to an action sheet closing in an app leveraging UIScenes.