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
27f3c135d2
commit
1a5c8bbb16
@@ -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