CPActionSheetTemplate not detected in presentedTemplate while CPAlertTemplate is

I'm developing a CarPlay app and encountered an inconsistent behavior with template detection.

When I present a CPActionSheetTemplate and then print the presentedTemplate property, it returns nil.

However, when I present a CPAlertTemplate, the presentedTemplate property correctly returns the template object.

This inconsistency is causing issues in my app where I need to check if there's already a presented template before showing another one to avoid conflicts. Why does CPActionSheetTemplate not get detected in presentedTemplate while CPAlertTemplate does? Is this intended behavior or a bug? Any guidance on how to properly detect if a CPActionSheetTemplate is currently presented would be greatly appreciated.

Our engineering teams need to investigate this issue, as resolution may involve changes to Apple's software. I'd greatly appreciate it if you could open a bug report, include a sysdiagnose and test project, and post the FB number here once you do.

Hopefully this helps.

Rico
Car Experience - Software Engineer

CPActionSheetTemplate not detected in presentedTemplate while CPAlertTemplate is
 
 
Q