Documentation Archive

Developer

Asset Catalog Format Reference

On This Page

LSR Image Set

The graphical image files for the named images of an image stack layer.

Extension

.imageset

Folder Contents

HEIF (High Efficiency Image Format), .png, .jpg, and .pdf files.

Contents.json File

Metadata, file type, idiom, and scale (Table 32-1).

Table 32-1LSR image set tags

Key

Type

Description

info

Dictionary

Versioning information for the image set.

   author

String

Use your bundle ID.

LSR files generated by Xcode use xcode.

   version

Number

The format version of the LSR file. Use 1.

properties

Dictionary

Properties for the image set.

images

Array of dictionaries

The images in the image set.

   filename

String

The name of the image file.

   idiom

Slot component

The device type for the image. Use universal.

   scale

Slot component

The scale of the image. Use 1x.

Sample Contents.json File

  1. {
  2.   "info" : {
  3.       "author" : "com.developerName",
  4.       "version" : 1
  5.    },
  6. "images" : [
  7. {
  8. "filename" : "llama.png",
  9. "idiom" : "universal",
  10. "scale" : "1x"
  11. },
  12. ]
  13. }