Documentation Archive

Developer

Asset Catalog Format Reference

On This Page

Watch Complications Type

The image sets for the required watch complication placeholder images. For information on watch complications, see Complication Essentials in App Programming Guide for watchOS.

Extension

.complicationset

Folder Contents

Image sets for each of the required watch complication types.

Contents.json File (Required)

Metadata and attributes for each required complication type (Table 30-1).

Table 30-1Data set tags

Key

Type

Description

info

Dictionary

Versioning information for the asset catalog.

   author

String

The application that authored the asset catalog.

   version

Number

The version of the asset catalog.

assets

Array

The image sets for each required complication type.

   idiom

Slot component

The device idiom of the watch complication image set. It must be set to "watch".

   filename

String

The name of the asset catalog folder containing the image set for the complication.

   role

Slot component

The role of the required complication. For the values, see role below.

Values for Enumerated Tags

role

The type of complication (Table 30-2).

Table 30-2role values

Value

Description

circular

The image set for a small circular complication.

modular

The image set for a small modular complication.

utilitarian

The image set for a small utilitarian complication.

Sample Contents.json File

  1. {
  2. "assets" : [
  3. {
  4. "idiom" : "watch",
  5. "filename" : "MyCircularComplication.imageset",
  6. "role" : "circular"
  7. },
  8. {
  9. "idiom" : "watch",
  10. "filename" : "MyModularComplication.imageset",
  11. "role" : "modular"
  12. },
  13. {
  14. "idiom" : "watch",
  15. "filename" : "MyUtilitarianComplication.imageset",
  16. "role" : "utilitarian"
  17. }
  18. ],
  19.   "info" : {
  20.       "author" : "com.developerName",
  21.       "version" : 1
  22. ]
  23.    }
  24. }