Fix the font when editing a message with RTE off. (#2779)

Co-authored-by: Mauro <34335419+Velin92@users.noreply.github.com>
This commit is contained in:
Doug
2024-05-03 19:45:28 +01:00
committed by GitHub
parent 7d06b471ec
commit 57fffa7fc7
@@ -95,6 +95,10 @@ private struct UITextViewWrapper: UIViewRepresentable {
if textView.attributedText != text {
textView.attributedText = text
// Re-apply the default font when setting text for e.g. edits.
textView.font = font
textView.textColor = .compound.textPrimary
// Prevent the textView from randomly using the tint color
textView.typingAttributes = [.font: font,
.foregroundColor: UIColor(.compound.textPrimary)]