Feat: Adapt to UIKit Scene-Based Life Cycle (iOS 26 Migration)#1152
Open
Tr2e wants to merge 1 commit intoSVProgressHUD:masterfrom
Open
Feat: Adapt to UIKit Scene-Based Life Cycle (iOS 26 Migration)#1152Tr2e wants to merge 1 commit intoSVProgressHUD:masterfrom
Tr2e wants to merge 1 commit intoSVProgressHUD:masterfrom
Conversation
|
您好,邮件已收到
|
Author
|
anybody can handle this? |
AdrianCurtin
added a commit
to commandpostsoft/SVProgressHUD
that referenced
this pull request
Dec 24, 2025
…OS 26 Migration)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This pull request addresses the migration to the UIKit scene-based life cycle, as required by Apple's TN3187. This change is essential as Apple has indicated that this will be a requirement for app launch in a future major release after iOS 26. Ignoring this adaptation can lead to app launch failures and deprecation warnings in the console.
The modifications refactor how the app's key window is retrieved to ensure proper functioning in multi-scene environments introduced in iOS 13.
Key Changes:
Refactored Window Retrieval: Replaced UIApplication.sharedApplication.windows with a safe iteration over UIApplication.sharedApplication.connectedScenes. This ensures the correct UIWindow is identified regardless of which scene is active.
Modified Methods: The frontWindow, visibleKeyboardHeight, and other related window-handling methods have been updated to support multiple scenes.
Added Backward Compatibility: The new logic includes a fallback mechanism for devices running iOS versions prior to 13, ensuring the app's functionality remains consistent across all supported operating systems.
This adaptation is a critical step towards modernizing the app's architecture and securing its future compatibility with the iOS platform.