App Intent snippet view does't able to fetch color for xcassets.

We have an existing app in which we have implemented AppShortcuts. The snippet view works fine in iOS 17 while in iOS18 beta, it doesn't able to fetch color from xcassets. If we use system colours or UIColor it's working fine.

Not working

Color("progressColor")

Working

Color(uiColor: UIColor(named: "progressColor")!)
Color.red
Color(hex: "3881d3") //  Note: We created Color extension to generate color from hex string.
App Intent snippet view does't able to fetch color for xcassets.
 
 
Q