Contents

CPAlertTemplate

A template that displays a modal alert.

Declaration

@MainActor class CPAlertTemplate

Overview

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.

Topics

Creating an Alert Template

Getting the Alert Information

See Also

Actions and Alerts