I have a common framework shared by multiple applications. In my common framework, I have colors defined in assets. I use following code to access the colors within common framework.
public struct ColorTheme {
public static let primaryColor = Color("primaryColor")
public static let secondaryColor = Color("secondaryColor")
public static let captionColor = Color("captionColor")
}
It works fine within the common framework. But as soon as I use the framework in my ZYZ app with syntax ColorTheme.primaryColor
colors are not loaded and I get following error
No color named 'primaryColor' found in asset catalog for main bundle
I know that colors are not in main bundle, but in common framework's bundle. Do you know how should we fix the issue, so we can acess those colors from common frameworks bundle using SwiftUI code?