What's new in SwiftUI

RSS for tag

Discuss the WWDC21 session What's new in SwiftUI.

View Session

Posts under wwdc21-10018 tag

1 result found
Sort by:
Post not yet marked as solved
2 Replies
2k Views
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
Posted Last updated
.