Files
divkit/client/ios/DivKit/Extensions/DivFontWeightExtensions.swift
T
2023-03-28 12:17:21 +03:00

28 lines
428 B
Swift

import BaseUIPublic
extension DivFontWeight {
var fontWeight: FontWeight {
switch self {
case .light:
return .light
case .regular:
return .regular
case .medium:
return .medium
case .bold:
return .bold
}
}
}
extension DivFontFamily {
var fontFamily: FontFamily {
switch self {
case .display:
return .YSDisplay
case .text:
return .YSText
}
}
}