{"id":18839751,"url":"https://github.com/maximbilan/swiftui-widgetkit-gradient-issue","last_synced_at":"2026-04-25T23:35:52.228Z","repository":{"id":76126307,"uuid":"301417700","full_name":"maximbilan/SwiftUI-WidgetKit-Gradient-Issue","owner":"maximbilan","description":"This code shows a bug with gradient colors which is happening using Widgets extension for iOS 14","archived":false,"fork":false,"pushed_at":"2020-10-05T14:06:52.000Z","size":212,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-30T09:26:22.548Z","etag":null,"topics":["swiftui","widgetkit"],"latest_commit_sha":null,"homepage":"https://developer.apple.com/forums/thread/662888","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maximbilan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-05T13:27:09.000Z","updated_at":"2023-02-14T10:13:18.000Z","dependencies_parsed_at":"2023-02-25T05:30:37.662Z","dependency_job_id":null,"html_url":"https://github.com/maximbilan/SwiftUI-WidgetKit-Gradient-Issue","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximbilan%2FSwiftUI-WidgetKit-Gradient-Issue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximbilan%2FSwiftUI-WidgetKit-Gradient-Issue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximbilan%2FSwiftUI-WidgetKit-Gradient-Issue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximbilan%2FSwiftUI-WidgetKit-Gradient-Issue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maximbilan","download_url":"https://codeload.github.com/maximbilan/SwiftUI-WidgetKit-Gradient-Issue/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239774310,"owners_count":19694701,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["swiftui","widgetkit"],"created_at":"2024-11-08T02:43:58.092Z","updated_at":"2026-01-29T01:30:13.840Z","avatar_url":"https://github.com/maximbilan.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SwiftUI: WidgetsKit Gradient Bug\nThis code shows a bug with gradient colors which is happening using Widgets extension for iOS 14.\nSo, I'm trying to use two blue colors and always get the green one. It doesn't happen for the common iOS target.\n\nThe example is using two colors: `#0091f1` and `#0054f3`\n\u003c/br\u003e\u003c/br\u003e\n![alt tag](https://github.com/maximbilan/SwiftUI-WidgetKit-Gradient-Issue/blob/main/Screenshots/1.png)\n\nThe common iOS target shows the next gradient:\n\u003c/br\u003e\u003c/br\u003e\n![alt tag](https://github.com/maximbilan/SwiftUI-WidgetKit-Gradient-Issue/blob/main/Screenshots/2.png)\n\nHowever, if you're doing the same with Widgets extension it goes green:\n\u003c/br\u003e\u003c/br\u003e\n![alt tag](https://github.com/maximbilan/SwiftUI-WidgetKit-Gradient-Issue/blob/main/Screenshots/3.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaximbilan%2Fswiftui-widgetkit-gradient-issue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaximbilan%2Fswiftui-widgetkit-gradient-issue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaximbilan%2Fswiftui-widgetkit-gradient-issue/lists"}