From 34b57906c9d77b9c8a0afa205463eaf0fd5c01b3 Mon Sep 17 00:00:00 2001 From: Yuya Matsuo Date: Tue, 21 Nov 2023 19:50:51 +0900 Subject: [PATCH] Sort icons Array before passing to exportIcons --- Sources/FigmaExport/Subcommands/ExportIcons.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/FigmaExport/Subcommands/ExportIcons.swift b/Sources/FigmaExport/Subcommands/ExportIcons.swift index 5ad2b6fc..a98b064d 100644 --- a/Sources/FigmaExport/Subcommands/ExportIcons.swift +++ b/Sources/FigmaExport/Subcommands/ExportIcons.swift @@ -218,7 +218,7 @@ extension FigmaExportCommand { }.map { fileContents -> String in fileContents.destination.file.deletingPathExtension().lastPathComponent }) - let composeFile = try composeExporter.exportIcons(iconNames: Array(composeIconNames)) + let composeFile = try composeExporter.exportIcons(iconNames: Array(composeIconNames).sorted()) composeFile.map { localFiles.append($0) } logger.info("Writing files to Android Studio project...")