Files
denlvovich e001d74afe Update to VGSL6.0
4f8b5f480ade3f347d5f0a2d01a1618069bcb846
2024-07-12 20:33:42 +03:00

15 lines
340 B
Swift

import CoreGraphics
import Foundation
import DivKit
import VGSL
extension String {
func withTypo(size: CGFloat, weight: DivFontWeight = .regular) -> NSAttributedString {
let typo = Typo(
font: AppComponents.fontProvider.font(weight: weight, size: size)
)
return NSAttributedString(string: self).with(typo: typo)
}
}