No color named found in asset catalog for

Bug in IOS18 / Xcode 16. The code works fine on a IOS17 sim but on an IOS18 simulator or device errors are show when using custom colors names. Like .text4.

No color named found in asset catalog for
 
 
Q