Image Stack Type
A set of layered images combined to enable parallax. For more information on layered images and parallax, see Creating Parallax Artwork in the App Programming Guide for tvOS and Layered Images in the Apple TV Human Interface Guidelines.
Extension
.imagestack
Folder Contents
Image stack layers.
Contents.json File (Required)
Metadata and a list of the image stack layers (Table 19-1).
Key |
Type |
Description |
---|---|---|
|
Dictionary |
Metadata for the author and format version of the asset catalog. |
|
String |
Use your bundle ID. |
|
Number |
The format version of the asset catalog. Use |
|
Array of dictionaries |
The layers in the image stack. |
|
String |
The name of the asset catalog folder containing the layer. |
|
Dictionary |
Properties for the image stack. |
|
Dictionary |
The canvas size for the image stack. Defaults to the size of the background layer if the tag is not included. |
|
Number |
The width of the image stack canvas in pixels. |
|
Number |
The height of the image stack canvas in pixels. |
Sample Contents.json Files
Simple Image Stack
{
"layers" : [
{
"filename" : "Foreground.imagestacklayer"
},
{
"filename" : "Llama.imagestacklayer"
},
{
"filename" : "Background.imagestacklayer"
}
],
"info" : {
"author" : "com.developerName",
"version" : 1
}
}
Image Stack with Canvas Size
{
"layers" : [
{
"filename" : "Foreground.imagestacklayer"
},
{
"filename" : "Llama.imagestacklayer"
},
{
"filename" : "Background.imagestacklayer"
}
],
"info" : {
"author" : "com.developerName",
"version" : 1
},
"properties" : {
"canvasSize" : {
"width" : 2048
"height" : 1365
}
}
}
Copyright © 2018 Apple Inc. All rights reserved. Terms of Use | Privacy Policy | Updated: 2018-04-09