mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-10 21:39:12 +00:00
Fix #3369 - Composer mention pills showing up as file icons on first use on iOS 18
This commit is contained in:
parent
2b82959430
commit
665bdd191f
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user