vds_ios/VDS/Components/Icon/IconSize.swift
Matt Bruce e3f791960a documentation update
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
2023-08-30 13:29:52 -05:00

41 lines
916 B
Swift

//
// IconSize.swift
// VDS
//
// Created by Matt Bruce on 1/13/23.
//
import Foundation
extension Icon {
/// Enum used to describe the 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)
}
}
}
}