Having issues with changing color of one of the words in the title #11

Open
opened 2025-10-14 15:54:44 -06:00 by navan · 0 comments
Owner

Originally created by @DanielSmith1239 on 10/22/2024

What happened?

When I try setting the color of a single word in the title, it doesn't seem to apply the color.

What are the steps to reproduce?

    private static let title = WhatsNew.Title(text: .init("What's New in "
                                                          + AttributedString(
                                                            "MyApp",
                                                            attributes: .init([.foregroundColor: Color.green])
                                                          )))

What is the expected behavior?

MyApp should be green, but it stays black.

*Originally created by @DanielSmith1239 on 10/22/2024* ### What happened? When I try setting the color of a single word in the title, it doesn't seem to apply the color. ### What are the steps to reproduce? ``` private static let title = WhatsNew.Title(text: .init("What's New in " + AttributedString( "MyApp", attributes: .init([.foregroundColor: Color.green]) ))) ``` ### What is the expected behavior? `MyApp` should be green, but it stays black.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github/WhatsNewKit#11
No description provided.