Skip to content

Commit da450fd

Browse files
committed
Fix ios image format
1 parent 6ff2cd4 commit da450fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/FigmaExport/Loaders/ImagesLoader.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ final class ImagesLoader {
100100
private func loadImagesFromSingleFile(filter: String? = nil) throws -> (light: [ImagePack], dark: [ImagePack]?) {
101101
let darkSuffix = params.common?.images?.darkModeSuffix ?? "_dark"
102102
switch (platform, params.android?.images?.format) {
103-
case (.android, .png), (.android, .webp), (.ios, .none):
103+
case (.android, .png), (.android, .webp), (.ios, _):
104104
let images = try loadPNGImages(
105105
fileId: params.figma.lightFileId,
106106
frameName: imagesFrameName,
@@ -127,7 +127,7 @@ final class ImagesLoader {
127127

128128
private func loadImagesFromLightAndDarkFile(filter: String? = nil) throws -> (light: [ImagePack], dark: [ImagePack]?) {
129129
switch (platform, params.android?.images?.format) {
130-
case (.android, .png), (.android, .webp), (.ios, .none):
130+
case (.android, .png), (.android, .webp), (.ios, _):
131131
let lightImages = try loadPNGImages(
132132
fileId: params.figma.lightFileId,
133133
frameName: imagesFrameName,

0 commit comments

Comments
 (0)