MESSENGER-4772 change font size

This commit is contained in:
JanNiklas Grabowski
2023-06-29 12:18:10 +02:00
parent 531667ec5a
commit ebdd064e66

View File

@@ -49,7 +49,7 @@ struct UIMarkDownWrapper: UIViewRepresentable {
func updateUIView(_ uiView: UILabel, context: Context) {
let down = Down(markdownString: markDownString)
guard let attributedString = try? down.toAttributedString() else { return }
guard let attributedString = try? down.toAttributedString(stylesheet: "* {font-family: sans-serif; font-size: 16pt; } ") else { return }
let mutableString = NSMutableAttributedString(attributedString: attributedString)
mutableString.addAttributes([.foregroundColor: ThemeService.shared().theme.textPrimaryColor], range: NSRange(location: 0, length: attributedString.length))