Skip to content

Commit

Permalink
Fix ios image format
Browse files Browse the repository at this point in the history
  • Loading branch information
subdan committed Dec 11, 2021
1 parent 6ff2cd4 commit da450fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/FigmaExport/Loaders/ImagesLoader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit da450fd

Please sign in to comment.