From 7842ca831a7d52dca1ea2c549acb3dc05fe54e61 Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Wed, 11 Oct 2023 18:24:52 +0300 Subject: [PATCH] Revert code that should've been fixed before merging the previous PR. --- ElementX/Sources/Other/Pills/MessageText.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ElementX/Sources/Other/Pills/MessageText.swift b/ElementX/Sources/Other/Pills/MessageText.swift index 3f8afcb9d..e0f0225b6 100644 --- a/ElementX/Sources/Other/Pills/MessageText.swift +++ b/ElementX/Sources/Other/Pills/MessageText.swift @@ -91,7 +91,10 @@ struct MessageText: UIViewRepresentable { return textView } - func updateUIView(_ uiView: MessageTextView, context: Context) { } + func updateUIView(_ uiView: MessageTextView, context: Context) { + uiView.attributedText = NSAttributedString(attributedString) + context.coordinator.openURLAction = openURLAction + } func sizeThatFits(_ proposal: ProposedViewSize, uiView: MessageTextView, context: Context) -> CGSize? { let proposalWidth = proposal.width ?? UIView.layoutFittingExpandedSize.width