Documentation/SwiftGenKit Contexts/xcassets.md
The assets parser accepts one (or more) asset catalogs, which it'll parse for supported set types and groups. We currently support the following types:
For a full documentation of asset catalog types, please read the Apple documentation.
The output context has the following structure:
catalogs: Array — list of asset catalogs
name : String — the name of the catalogassets: Array — tree structure of items, each item either
type : String — one of "arresourcegroup", "color", "data" or "image"name : String — name of the assetvalue: String — the actual full name for loading the assettype : String — "group"name : String — name of the folderisNameSpaced: Bool - Whether this group provides a namespace for child itemsitems : Array — list of items, can be either groups or other assetscatalogs:
- assets:
- name: "Data"
type: "data"
value: "Data"
- isNamespaced: "true"
items: []
name: "Empty"
type: "group"
- isNamespaced: "true"
items:
- name: "Data"
type: "data"
value: "Json/Data"
name: "Json"
type: "group"
- name: "README"
type: "data"
value: "README"
name: "Files"
- assets:
- isNamespaced: "true"
items:
- name: "Banana"
type: "image"
value: "Exotic/Banana"
- name: "Mango"
type: "image"
value: "Exotic/Mango"
name: "Exotic"
type: "group"
- isNamespaced: "true"
items:
- name: "Apricot"
type: "image"
value: "Round/Apricot"
name: "Round"
type: "group"
name: "Food"
- assets:
- isNamespaced: "true"
items:
- name: "Background"
type: "color"
value: "24Vision/Background"
- name: "Primary"
type: "color"
value: "24Vision/Primary"
name: "24Vision"
type: "group"
- name: "Orange"
type: "image"
value: "Orange"
name: "Styles"
- assets:
- name: "Exclamation Mark"
type: "symbol"
value: "Exclamation Mark"
- name: "Plus"
type: "symbol"
value: "Plus"
name: "Symbols"
- assets:
- name: "Bottles"
type: "arresourcegroup"
value: "Bottles"
- name: "Paintings"
type: "arresourcegroup"
value: "Paintings"
- name: "Posters"
type: "arresourcegroup"
value: "Posters"
name: "Targets"