When a token name matches a SwiftUI built-in ShapeStyle static property (e.g. primary, secondary, tint, background, selection), the generated ShapeStyle extension will conflict with built-in causing compiler error.
The configurator should detect these names and show an inline warning on the token chip, nudging the user to add a style override. For example, a token named primary without an override would show something like:
"primary" conflicts with a SwiftUI built-in. Consider adding a style override (e.g. primaryColor).
The warning should appear when:
- The token name matches a known SwiftUI ShapeStyle name
- No style override is set (i.e. name === style)
And disappear once the user sets a different style value via the popover.
When a token name matches a SwiftUI built-in ShapeStyle static property (e.g. primary, secondary, tint, background, selection), the generated
ShapeStyleextension will conflict with built-in causing compiler error.The configurator should detect these names and show an inline warning on the token chip, nudging the user to add a style override. For example, a token named primary without an override would show something like:
The warning should appear when:
And disappear once the user sets a different style value via the popover.