CPAlertTemplate
A template that displays a modal alert.
Declaration
@MainActor class CPAlertTemplateOverview
You must present alerts modally by calling the presentTemplate(_:animated:completion:) method available on your app’s instance of CPInterfaceController. The user dismisses the alert by pressing a button, or you can dismiss it by calling the interface controller’s dismissTemplate(animated:completion:) method.