Have you seen this: https://stackoverflow.com/questions/75513158/how-do-you-add-an-image-attachment-to-an-attributedstring. I've also been able to create an AttributedString that includes graphic attachments by loading an RTFD file into NSAttributedString and then initialize an AttributedString from the NSAttributedString. The AttributedString contains the graphic attachment as demonstrated by printing the object to the console. But when placed in a TextEditor, the graphics are not displayed. If I do a similar thing with UITextView, it displays the graphics.
Topic:
UI Frameworks
SubTopic:
SwiftUI