Generate an Xcode SF Symbol asset catalog .symbolset from an SVG. Use when you need to add a custom SF Symbol (build-time) by creating the symbolset folder, Contents.json, and SVG file.
You can override the default asset catalog location with SFSYMBOL_ASSETS_DIR.
./scripts/generate.sh <symbol-name> <svg-path> [assets-dir]
symbol-name: Full symbol name (e.g., custom.logo, brand.icon.fill).svg-path: Path to the source SVG file.assets-dir (optional): Path to Assets.xcassets/Symbols (defaults to Assets.xcassets/Symbols or SFSYMBOL_ASSETS_DIR)../scripts/generate-from-template.js <symbol-name> <svg-path> [template-svg] [assets-dir]
template-svg (optional): SF Symbols template SVG to inject into (defaults to the first .symbolset SVG found in Assets.xcassets/Symbols, otherwise uses the bundled skill template)../scripts/generate-from-template.js pi.logo /Users/admin/Desktop/pi-logo.svg
viewBox.<symbol-name>.symbolset inside the asset catalog Symbols folder.Contents.json.