Can SwiftUI work with core text?

Is there a way to draw the glyph variants out by swiftUI after I get the glyph name or code using core text?
I am trying to typesetting math equation using swiftui like what iosMath done in UIlabel. Is there a way to do so?

Yes, you can do it in a variety of ways. One of the coolest is using the new Canvas View, where you can use old-style programming to place characters wherever you want. I used this to draw text along a curve. I just built up an AttributedString and stepped through each glyph in it and drew them one by one.

Can SwiftUI work with core text?
 
 
Q