mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
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:
+4
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user