CHGenerator/Sources/Generator/Content/ThumbnailStyle.swift
2022-09-26 17:00:39 +02:00

36 lines
538 B
Swift

import Foundation
enum ThumbnailStyle: String, CaseIterable {
case large
case square
case small
var height: Int {
switch self {
case .large:
return 210
case .square:
return 178
case .small:
return 78
}
}
var width: Int {
switch self {
case .large:
return 374
case .square:
return 178
case .small:
return 78
}
}
}
extension ThumbnailStyle: Codable {
}