Skip to content

Configurator: warn when token names conflict with SwiftUI built-ins #4

@rozd

Description

@rozd

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions