From da450fd5b84c610911337643cbd0fac23fd6e1b2 Mon Sep 17 00:00:00 2001 From: Daniil Subbotin Date: Sat, 11 Dec 2021 17:09:32 +0300 Subject: [PATCH] Fix ios image format --- Sources/FigmaExport/Loaders/ImagesLoader.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/FigmaExport/Loaders/ImagesLoader.swift b/Sources/FigmaExport/Loaders/ImagesLoader.swift index 4298ee5e..4d94639c 100644 --- a/Sources/FigmaExport/Loaders/ImagesLoader.swift +++ b/Sources/FigmaExport/Loaders/ImagesLoader.swift @@ -100,7 +100,7 @@ final class ImagesLoader { private func loadImagesFromSingleFile(filter: String? = nil) throws -> (light: [ImagePack], dark: [ImagePack]?) { let darkSuffix = params.common?.images?.darkModeSuffix ?? "_dark" switch (platform, params.android?.images?.format) { - case (.android, .png), (.android, .webp), (.ios, .none): + case (.android, .png), (.android, .webp), (.ios, _): let images = try loadPNGImages( fileId: params.figma.lightFileId, frameName: imagesFrameName, @@ -127,7 +127,7 @@ final class ImagesLoader { private func loadImagesFromLightAndDarkFile(filter: String? = nil) throws -> (light: [ImagePack], dark: [ImagePack]?) { switch (platform, params.android?.images?.format) { - case (.android, .png), (.android, .webp), (.ios, .none): + case (.android, .png), (.android, .webp), (.ios, _): let lightImages = try loadPNGImages( fileId: params.figma.lightFileId, frameName: imagesFrameName,