Class

INDefaultCardTemplate

A card template for customizing the Siri watch face for a shortcut.

Declaration

class INDefaultCardTemplate : NSObject

Overview

The Siri watch face displays a relevant shortcut using information from the INIntent or NSUserActivity provided when creating the shortcut. If you want to provide watch specific information—for example, to display a shorter title—provide the relevant shortcut a default card template by setting the watchTemplate property. The template allows your app to set the title, subtitle, and image. For more information, see Displaying Shortcut Information in a Siri Watch Face Card.

Figure 1

A Siri watch face card showing an image, title, and subtitle set on a default card template

A screenshot of the Siri watch face showing a custom default card template with callouts for image, title, and subtitle.

Topics

Creating a Default Card Template

init(title: String)

Creates a default card template with the specified title.

Managing Template Information

var title: String

The title displayed in the Siri watch face card.

var subtitle: String?

The subtitle displayed in the Siri watch face card.

var image: INImage?

The image displayed in the Siri watch face card.

Relationships

Inherits From

See Also

Siri Watch Face Cards

Displaying Shortcut Information in a Siri Watch Face Card

Display and customize watch-specific shortcut information with a default card template.