You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
session-ios/SessionUIKit/Types/IconSize.swift

24 lines
478 B
Swift

// Copyright © 2022 Rangeproof Pty Ltd. All rights reserved.
import Foundation
import DifferenceKit
public enum IconSize: Differentiable {
case small
case medium
case large
case veryLarge
case fit
public var size: CGFloat {
switch self {
case .small: return 20
case .medium: return 24
case .large: return 32
case .veryLarge: return 80
case .fit: return 0
}
}
}