An open API service indexing awesome lists of open source software.

https://github.com/maximbilan/swiftui-widgetkit-gradient-issue

This code shows a bug with gradient colors which is happening using Widgets extension for iOS 14
https://github.com/maximbilan/swiftui-widgetkit-gradient-issue

swiftui widgetkit

Last synced: 2 months ago
JSON representation

This code shows a bug with gradient colors which is happening using Widgets extension for iOS 14

Awesome Lists containing this project

README

          

# SwiftUI: WidgetsKit Gradient Bug
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`

![alt tag](https://github.com/maximbilan/SwiftUI-WidgetKit-Gradient-Issue/blob/main/Screenshots/1.png)

The common iOS target shows the next gradient:

![alt tag](https://github.com/maximbilan/SwiftUI-WidgetKit-Gradient-Issue/blob/main/Screenshots/2.png)

However, if you're doing the same with Widgets extension it goes green:

![alt tag](https://github.com/maximbilan/SwiftUI-WidgetKit-Gradient-Issue/blob/main/Screenshots/3.png)