vds_ios/VDS/Components/Icon/IconSize.swift
Matt Bruce 21ac83af4f removed codable
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
2023-01-25 11:50:11 -06:00

40 lines
851 B
Swift

//
// IconSize.swift
// VDS
//
// Created by Matt Bruce on 1/13/23.
//
import Foundation
extension Icon {
public enum Size: String, CaseIterable {
case xsmall
case small
case medium
case large
case XLarge
public var dimensions: CGSize {
switch self {
case .xsmall:
return .init(width: 12, height: 12)
case .small:
return .init(width: 16, height: 16)
case .medium:
return .init(width: 20, height: 20)
case .large:
return .init(width: 24, height: 24)
case .XLarge:
return .init(width: 28, height: 28)
}
}
}
}