Unable to get screen for CPTemplateApplicationScene

Number:rdar://FB9880856 Date Originated:Feb 4, 2022 at 8:59 PM
Status:Open Resolved:
Product:CarPlay App Development Product Version:
Classification:Suggestion Reproducible:
UIWindow.screen is deprecated since iOS 13. In UIKit it is possible to get screen from window's scene(window.windowScene.screen). But there is no counterpart for CPTemplateApplicationScene, it's impossible to attribute screen to a CarPlay scene as screen property is not available there.

This is needed, e.g. to create a display link to the head unit's screen.

The workaround is, of course, to keep using UIWindow.screen despite it being deprecated.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!