Description
Apple's WWDC26 session “Modernize your UIKit app” recommends avoiding global main-screen references. In scene-based apps, especially with iPhone Mirroring, external displays, and multi-window setups, UIScreen.main may not represent the display where current UI is running.
PopupView/Sources/Utils.swift currently uses UIScreen.main on line 23. Please update this usage to follow scene-based UIKit geometry guidance.
Reference
Apple WWDC26: “Modernize your UIKit app”
https://developer.apple.com/videos/play/wwdc2026/278/
Description
Apple's WWDC26 session “Modernize your UIKit app” recommends avoiding global main-screen references. In scene-based apps, especially with iPhone Mirroring, external displays, and multi-window setups,
UIScreen.mainmay not represent the display where current UI is running.PopupView/Sources/Utils.swiftcurrently usesUIScreen.mainon line 23. Please update this usage to follow scene-based UIKit geometry guidance.Reference
Apple WWDC26: “Modernize your UIKit app”
https://developer.apple.com/videos/play/wwdc2026/278/