Skip to content

Add Colors.xcassets to package resources#102

Open
lfarah wants to merge 2 commits into
mainfrom
fix/colors-xcassets-resources
Open

Add Colors.xcassets to package resources#102
lfarah wants to merge 2 commits into
mainfrom
fix/colors-xcassets-resources

Conversation

@lfarah
Copy link
Copy Markdown
Contributor

@lfarah lfarah commented Feb 11, 2026

Summary

  • Explicitly adds Tokens/Color/Colors.xcassets to the SPM resources array
  • Fixes Color(.violet) and Color(.rose) failing when loaded from Bundle.module in Tuist-generated projects
  • Xcode SPM auto-discovers .xcassets files but Tuist requires explicit declarations

lfarah and others added 2 commits February 11, 2026 19:44
The Colors.xcassets at Tokens/Color/ was not explicitly declared
in the resources array. While Xcode SPM auto-discovers xcassets,
Tuist requires explicit declarations, causing Color(.violet) and
Color(.rose) to fail when loaded from Bundle.module.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace Color(.violet) with Tokens.Color.violet.color in preview
blocks. Color(.violet) tries to initialize SwiftUI.Color from
UIColor.violet which doesn't exist - it needs the Tokens accessor.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants