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
- Host: GitHub
- URL: https://github.com/maximbilan/swiftui-widgetkit-gradient-issue
- Owner: maximbilan
- License: mit
- Created: 2020-10-05T13:27:09.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-10-05T14:06:52.000Z (over 5 years ago)
- Last Synced: 2024-12-30T09:26:22.548Z (over 1 year ago)
- Topics: swiftui, widgetkit
- Language: Swift
- Homepage: https://developer.apple.com/forums/thread/662888
- Size: 207 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`

The common iOS target shows the next gradient:

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