I\'ve been able to render NSAttributedStrings via UIViewRepresentable which works great until I wrap the view in a ScrollView.
NSAttributedString
UIViewRepresentable
ScrollView
If you want to use Asperi's TextWithAttributedString as a child view, replace
TextWithAttributedString
height = textView.sizeThatFits(UIScreen.main.bounds.size).height
by
DispatchQueue.main.async { height = textView.sizeThatFits(textView.visibleSize).height }