AttributedString example broken #19

Closed
opened 2025-10-14 15:55:13 -06:00 by navan · 0 comments
Owner

Originally created by @tillkruss on 4/30/2024

What happened?

This code:
6157c77e8b/Example/Example/ExamplesView.swift (L162-L170)

Does not build with iOS 17.x in a SwiftUI app:

Cannot infer contextual base in reference to member 'cyan'
Type 'AttributeContainer' has no member 'foregroundColor'

Is there a way to highlight a word using the latest version?

What are the steps to reproduce?

Build with iOS 17.x

What is the expected behavior?

It to build.

*Originally created by @tillkruss on 4/30/2024* ### What happened? This code: https://github.com/SvenTiigi/WhatsNewKit/blob/6157c77e8be9b3d2310bc680681b61a8d9e290ac/Example/Example/ExamplesView.swift#L162-L170 Does not build with iOS 17.x in a SwiftUI app: ``` Cannot infer contextual base in reference to member 'cyan' Type 'AttributeContainer' has no member 'foregroundColor' ``` Is there a way to highlight a word using the latest version? ### What are the steps to reproduce? Build with iOS 17.x ### What is the expected behavior? It to build.
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#19
No description provided.