import SwiftUI import UniformTypeIdentifiers enum ExportFormats: String, CaseIterable { case png case jpeg case tiff case bmp case gif var title: String { switch self { case .png: String(localized: "export_formats.png") case .jpeg: String(localized: "export_formats.jpeg") case .tiff: String(localized: "export_formats.tiff") case .bmp: String(localized: "export_formats.bmp") case .gif: String(localized: "export_formats.gif") } } var utType: UTType { switch self { case .png: .png case .jpeg: .jpeg case .tiff: .tiff case .bmp: .bmp case .gif: .gif } } var fileType: NSBitmapImageRep.FileType { switch self { case .png: .png case .jpeg: .jpeg case .tiff: .tiff case .bmp: .bmp case .gif: .gif } } }