Skip to content

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

License

Notifications You must be signed in to change notification settings

maximbilan/SwiftUI-WidgetKit-Gradient-Issue

Repository files navigation

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

The common iOS target shows the next gradient:

alt tag

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

alt tag

About

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

Topics

Resources

License

Stars

Watchers

Forks

Languages