This code shows a bug with gradient colors which is happening using Widgets extension for iOS 14. So, I'm trying to use two blue colors and always get the green one. It doesn't happen for the common iOS target.
The example is using two colors: #0091f1
and #0054f3
The common iOS target shows the next gradient:
However, if you're doing the same with Widgets extension it goes green: