I tried to access the CPWindow that is attached to templateApplicationScene inside the following callback:
func templateApplicationScene(_ templateApplicationScene: CPTemplateApplicationScene, didConnect interfaceController: CPInterfaceController)
But the debugger consistently prints <uninitialized> when examining the object.
Here a gist - https://gist.github.com/sts2055/6c6a65d9253b14487deaa6f16e206b45 that includes a screenshot to further illustrate this.
The description of the CPWindow also reads:
Navigation apps use a window to render their maps, and CarPlay provides one via the scene delegate’s templateApplicationScene(:didConnect:to:)method. For all other categories of apps, you use templates exclusively to draw your user interface, and your scene delegate must implement templateApplicationScene(:didConnect:)instead. The app I'm working on is a CarPlay parking app.
Is the description of CPWindow not up to date? I'm using Xcode Version 12.0.1 (12A7300)
Topic:
App & System Services
SubTopic:
General
Tags: