From f53e76b8a89b1f24e1b1ae7cf17f6bcb4cddf437 Mon Sep 17 00:00:00 2001 From: Mauro Romito Date: Mon, 18 Sep 2023 13:34:16 +0200 Subject: [PATCH] fix --- ElementX/Sources/Other/Pills/MessageText.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ElementX/Sources/Other/Pills/MessageText.swift b/ElementX/Sources/Other/Pills/MessageText.swift index f64e9f1c0..91f71472b 100644 --- a/ElementX/Sources/Other/Pills/MessageText.swift +++ b/ElementX/Sources/Other/Pills/MessageText.swift @@ -46,7 +46,7 @@ struct MessageText: UIViewRepresentable { textView.contentInsetAdjustmentBehavior = .never textView.textContainerInset = .zero textView.textContainer.lineFragmentPadding = 0 - textView.layoutManager.usesFontLeading = false + textView.textLayoutManager?.usesFontLeading = false textView.backgroundColor = .clear textView.attributedText = NSAttributedString(attributedString) textView.delegate = context.coordinator