mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Fix #3369 - Composer mention pills showing up as file icons on first use on iOS 18
This commit is contained in:
committed by
Stefan Ceriu
parent
2b82959430
commit
665bdd191f
+5
@@ -110,6 +110,11 @@ private struct UITextViewWrapper: UIViewRepresentable {
|
||||
// Remember the selection if only the attributes have changed.
|
||||
let selection = textView.attributedText.string == text.string ? textView.selectedTextRange : nil
|
||||
|
||||
// Fixes pill views not loading on the first attempt on iOS 18
|
||||
// because the textContainers's superview comes in as nil
|
||||
// https://github.com/element-hq/element-x-ios/issues/3369
|
||||
_ = textView.layoutManager
|
||||
|
||||
textView.attributedText = text
|
||||
|
||||
// Re-apply the default font when setting text for e.g. edits.
|
||||
|
||||
Reference in New Issue
Block a user