155155 swiftUIImageSwift : " ./Source/Image+extension_icons.swift"
156156 # [optional] Absolute or relative path to swift file where to generate extension for UIImage for accessing icons from the code (e.g. UIImage.ic24ArrowRight)
157157 imageSwift : " ./Example/Source/UIImage+extension_icons.swift"
158+ # [optional] Absolute or relative path to swift file where to generate Figma Code Connect structs
159+ codeConnectSwift : " ./CodeConnect/Icons.figma.swift"
158160 # Asset render mode: "template", "original" or "default". Default value is "template".
159161 renderMode : default
160162 # Configure the suffix for filtering Icons and to denote a asset render mode: "default".
@@ -175,12 +177,14 @@ ios:
175177 # nameStyle: camelCase
176178 # preservesVectorRepresentation: ["*"]
177179 # imageSwift: "./Generated/ActionsIcons.swift"
180+ # codeConnectSwift: "./CodeConnect/Icons/ActionsIcons.figma.swift"
178181 # - figmaFrameName: Navigation # Export icons from "Navigation" frame
179182 # format: svg
180183 # assetsFolder: Navigation
181184 # nameStyle: camelCase
182185 # preservesVectorRepresentation: ["*"]
183186 # imageSwift: "./Generated/NavigationIcons.swift"
187+ # codeConnectSwift: "./CodeConnect/Icons/NavigationIcons.figma.swift"
184188
185189 # [optional] Parameters for exporting images (legacy single-object format)
186190 # Can also be an array of objects — see "Multiple Images Configuration" section below.
196200 swiftUIImageSwift : " ./Source/Image+extension_illustrations.swift"
197201 # [optional] Absolute or relative path to swift file where to generate extension for UIImage for accessing illustrations from the code (e.g. UIImage.illZeroNoInternet)
198202 imageSwift : " ./Example/Source/UIImage+extension_illustrations.swift"
203+ # [optional] Absolute or relative path to swift file where to generate Figma Code Connect structs
204+ # codeConnectSwift: "./CodeConnect/Images/Illustrations.figma.swift"
199205
200206 # [optional] Parameters for exporting typography
201207 typography :
@@ -449,11 +455,13 @@ ios:
449455 assetsFolder : Actions
450456 nameStyle : camelCase
451457 imageSwift : " ./Generated/ActionsIcons.swift"
458+ codeConnectSwift : " ./CodeConnect/Icons/ActionsIcons.figma.swift"
452459 - figmaFrameName : Navigation
453460 format : svg
454461 assetsFolder : Navigation
455462 nameStyle : camelCase
456463 imageSwift : " ./Generated/NavigationIcons.swift"
464+ codeConnectSwift : " ./CodeConnect/Icons/NavigationIcons.figma.swift"
457465` ` `
458466
459467### Per-Entry Fields
@@ -466,6 +474,7 @@ Each entry in the array supports all the same fields as the legacy format, plus:
466474| `nameValidateRegexp` | RegExp pattern for icon name validation. Overrides `common.icons.nameValidateRegexp` |
467475| `nameReplaceRegexp` | RegExp pattern for name replacement. Overrides `common.icons.nameReplaceRegexp` |
468476| `nameStyle` | Name style (camelCase, snake_case, etc.). Platform-specific default applies if not set |
477+ | `codeConnectSwift` | (iOS only) Path to Figma Code Connect file for linking assets to Figma components |
469478
470479# ## Fallback Behavior
471480
@@ -688,26 +697,29 @@ ios:
688697 assetsFolder: Onboarding
689698 nameStyle: camelCase
690699 imageSwift: "./Generated/OnboardingImages.swift"
700+ codeConnectSwift: "./CodeConnect/Images/OnboardingImages.figma.swift"
691701 - figmaFrameName: Promo
692702 assetsFolder: Promo
693703 nameStyle: camelCase
694704 scales: [1, 2, 3]
695705 imageSwift: "./Generated/PromoImages.swift"
706+ codeConnectSwift: "./CodeConnect/Images/PromoImages.figma.swift"
696707` ` `
697708
698709# ## Per-Entry Fields (iOS)
699710
700- | Field | Description |
701- | ------------------- | -------------------------------------------------------------------------------- |
702- | `figmaFrameName` | Figma frame name to export images from. Overrides `common.images.figmaFrameName` |
703- | `assetsFolder` | Folder name inside Assets.xcassets |
704- | `nameStyle` | camelCase, snake_case, PascalCase, etc. |
705- | `scales` | Array of scale factors [1, 2, 3] (optional) |
706- | `imageSwift` | Path to UIImage extension file (optional) |
707- | `swiftUIImageSwift` | Path to SwiftUI Image extension file (optional) |
708- | `sourceFormat` | Source format from Figma API : ` png` (default) or `svg` (optional) |
709- | `outputFormat` | Output format : ` png` (default) or `heic` (optional, macOS only for encoding) |
710- | `heicOptions` | HEIC encoding options (optional, see below) |
711+ | Field | Description |
712+ | ------------------- | --------------------------------------------------------------------------------- |
713+ | `figmaFrameName` | Figma frame name to export images from. Overrides `common.images.figmaFrameName` |
714+ | `assetsFolder` | Folder name inside Assets.xcassets |
715+ | `nameStyle` | camelCase, snake_case, PascalCase, etc. |
716+ | `scales` | Array of scale factors [1, 2, 3] (optional) |
717+ | `imageSwift` | Path to UIImage extension file (optional) |
718+ | `swiftUIImageSwift` | Path to SwiftUI Image extension file (optional) |
719+ | `codeConnectSwift` | Path to Figma Code Connect file for linking assets to Figma components (optional) |
720+ | `sourceFormat` | Source format from Figma API : ` png` (default) or `svg` (optional) |
721+ | `outputFormat` | Output format : ` png` (default) or `heic` (optional, macOS only for encoding) |
722+ | `heicOptions` | HEIC encoding options (optional, see below) |
711723
712724# ### HEIC Options (iOS only)
713725
0 commit comments