diff --git a/Sources/FigmaExport/Subcommands/ExportColors.swift b/Sources/FigmaExport/Subcommands/ExportColors.swift index 90aafd3..6ab6f79 100644 --- a/Sources/FigmaExport/Subcommands/ExportColors.swift +++ b/Sources/FigmaExport/Subcommands/ExportColors.swift @@ -82,6 +82,11 @@ extension FigmaExportCommand { let exporter = XcodeColorExporter(output: output) let files = exporter.export(colorPairs: colorPairs) + + if iosParams.colors.useColorAssets, let url = colorsURL { + try? FileManager.default.removeItem(atPath: url.path) + } + try fileWritter.write(files: files) }