Create a gist now

Instantly share code, notes, and snippets.

xcode image asset - sliced image
{
"images" : [
{
"resizing" : {
"mode" : "9-part",
"center" : {
"mode" : "fill",
"width" : 2,
"height" : 1
},
"capInsets" : {
"bottom" : 8,
"top" : 5,
"right" : 3,
"left" : 3
}
},
"idiom" : "universal",
"filename" : "high.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
{
"images" : [
{
"idiom" : "universal",
"filename" : "high.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
{
"images" : [
{
"resizing" : {
"mode" : "3-part-horizontal",
"center" : {
"mode" : "fill",
"width" : 1
},
"capInsets" : {
"right" : 2,
"left" : 2
}
},
"idiom" : "universal",
"filename" : "high.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
{
"images" : [
{
"resizing" : {
"mode" : "3-part-vertical",
"center" : {
"mode" : "fill",
"height" : 1
},
"capInsets" : {
"top" : 2,
"bottom" : 5
}
},
"idiom" : "universal",
"filename" : "low.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment