Skip to content

Feat: Adapt to UIKit Scene-Based Life Cycle (iOS 26 Migration)#1152

Open
Tr2e wants to merge 1 commit intoSVProgressHUD:masterfrom
Tr2e:fix-ios26-window-error
Open

Feat: Adapt to UIKit Scene-Based Life Cycle (iOS 26 Migration)#1152
Tr2e wants to merge 1 commit intoSVProgressHUD:masterfrom
Tr2e:fix-ios26-window-error

Conversation

@Tr2e
Copy link
Copy Markdown

@Tr2e Tr2e commented Aug 19, 2025

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.

@godLoveY
Copy link
Copy Markdown

godLoveY commented Aug 19, 2025 via email

@Tr2e
Copy link
Copy Markdown
Author

Tr2e commented Aug 25, 2025

anybody can handle this?

AdrianCurtin added a commit to commandpostsoft/SVProgressHUD that referenced this pull request Dec 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants