Files
pkurchatov 27a3472171 Enabled blankLinesBetweenImports swiftformat rule
commit_hash:84ea24cbdf21ef89741080f38ec5e583172a2458
2024-12-20 12:41:02 +03:00

14 lines
339 B
Swift

import CoreGraphics
import DivKit
import Foundation
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)
}
}