Skip to content

Commit

Permalink
Remove old colors when exporting colors
Browse files Browse the repository at this point in the history
  • Loading branch information
subdan committed Aug 20, 2020
1 parent 1b45222 commit 654b455
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/FigmaExport/Subcommands/ExportColors.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 654b455

Please sign in to comment.