Please note that the top-level keys, namely output
and input
, are mandatory. These keys determine the values (input
) to be used for generating a specific xcasset (output
). Each output corresponds to the generation of an xcasset.
xcassets:
images:
- output: Generated/Icons.xcassets
input: Images/icons
properties:
preserves-vector-representation: true
template-rendering-intent: template
xcassets:
images:
- output: Generated/Illustrations.xcassets
input: Images/illustrations
properties:
preserves-vector-representation: true
xcassets:
images:
- output: Generated/PlainLogos.xcassets
input: Images/logos-v2/plain
properties:
preserves-vector-representation: true
template-rendering-intent: template
process:
addSuffix: Plain
xcassets:
images:
- output: Generated/ColoredLogos.xcassets
input: Images/logos-v2/colored
properties:
preserves-vector-representation: true
process:
addSuffix: Colored
xcassets:
images:
- output: Generated/V1Logos.xcassets
input: Images/logos-v1/any
adaptive:
input: Images/logos-v1/dark
properties:
preserves-vector-representation: true
It is also possible to define multiple outputs simultaneously.
xcassets:
images:
- output: ...
input: ...
- output: ...
input: ...
The output
specifies the path and filename for the generated xcasset.
The input
specifies the path to the folder of images. Keep in mind that we currently only support single/universal images.
process
: Additional processing options.addSuffix
(e.g., bySuffix
): This will add the specified suffix to the name of the image. (background
=>backgroundSuffix
)addPrefix
(e.g., byprefix
): This will add the specified suffix to the name of the image. (background
=>prefixBackground
)
adaptive
: You have the possibility to create a image set with a image for any and dark.input
: specifies the path to the folder of images. Keep in mind that they have to be named exactly the same as theany
input above to be able to be matched together as adaptive image.
properties
: These are the same porperies you should already know about in yourContents.json
this values will just be added 1:1 like you define them here. For more information check out apple docs.
params
: Additional parameters for the input. Certain templates may require specific values defined within this section. You can also include your custom static values here.
(*
mandatory)