// // IconSize.swift // VDS // // Created by Matt Bruce on 1/13/23. // import Foundation extension Icon { /// Enum for a preset height and width for the 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) } } } }