In the "What's new in Foundation" and "What's new in SwiftUI" talks there were examples of creating custom Attributed String styles. The example shown was for a rainbow style.
They showed creating the style, serializing the style, using the style in a String - but did not show how to actually render the text in the rainbow style. How is that part done in SwiftUI.
ie if I have Text("My fake example of ^[a custom style](customStyle: redAndEmphasized
).")
How would i create the piece that renders "a custom style" with foregroundColor red and a heavy font?
Thanks,
Daniel