Files
divkit/client/ios/DivKit/Fonts/DivFontWeightExtensions.swift
T
pkurchatov 003e17a542 Added font_weight_value support
cbefd201bea8482402681a915e6909154be9e544
2024-06-18 15:52:30 +03:00

15 lines
190 B
Swift

extension DivFontWeight {
func toInt() -> Int {
switch self {
case .light:
300
case .regular:
400
case .medium:
500
case .bold:
700
}
}
}