Skip to content

Commit

Permalink
Revert code that should've been fixed before merging the previous PR.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanceriu committed Oct 11, 2023
1 parent c358150 commit 7842ca8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ElementX/Sources/Other/Pills/MessageText.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7842ca8

Please sign in to comment.