{"id":17068944,"url":"https://github.com/kgn/kgngradientview","last_synced_at":"2025-07-23T17:36:52.607Z","repository":{"id":56917205,"uuid":"21231601","full_name":"kgn/KGNGradientView","owner":"kgn","description":"KGNGradientView is a collection UIView subclasses for linear and radial gradients.","archived":false,"fork":false,"pushed_at":"2020-02-20T06:40:21.000Z","size":47,"stargazers_count":10,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-22T20:28:40.830Z","etag":null,"topics":["carthage","cocoapods","gradient","radial-gradients","swift","travis","ui","uikit"],"latest_commit_sha":null,"homepage":"","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/kgn.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}},"created_at":"2014-06-26T07:14:53.000Z","updated_at":"2020-02-20T06:40:20.000Z","dependencies_parsed_at":"2022-08-21T03:50:51.111Z","dependency_job_id":null,"html_url":"https://github.com/kgn/KGNGradientView","commit_stats":null,"previous_names":[],"tags_count":33,"template":false,"template_full_name":null,"purl":"pkg:github/kgn/KGNGradientView","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kgn%2FKGNGradientView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kgn%2FKGNGradientView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kgn%2FKGNGradientView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kgn%2FKGNGradientView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kgn","download_url":"https://codeload.github.com/kgn/KGNGradientView/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kgn%2FKGNGradientView/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266721136,"owners_count":23974108,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["carthage","cocoapods","gradient","radial-gradients","swift","travis","ui","uikit"],"created_at":"2024-10-14T11:15:40.513Z","updated_at":"2025-07-23T17:36:52.568Z","avatar_url":"https://github.com/kgn.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KGNGradientView\n\n`KGNGradientView` is a collection `UIView` subclasses for linear and radial gradients.\n\n[![Release](https://img.shields.io/github/release/kgn/KGNGradientView.svg)](/releases)\n[![License](http://img.shields.io/badge/License-MIT-lightgrey.svg)](/LICENSE)\n\n[![Build Status](https://travis-ci.org/kgn/KGNGradientView.svg)](https://travis-ci.org/kgn/KGNGradientView)\n[![Test Coverage](http://img.shields.io/badge/Tests-58%25-red.svg)]()\n[![Carthage Compatible](https://img.shields.io/badge/Carthage-Compatible-4BC51D.svg)](https://github.com/Carthage/Carthage)\n[![CocoaPods Version](https://img.shields.io/cocoapods/v/KGNGradientView.svg)](https://cocoapods.org/pods/KGNGradientView)\n[![CocoaPods Platforms](https://img.shields.io/cocoapods/p/KGNGradientView.svg)](https://cocoapods.org/pods/KGNGradientView)\n\n[![Twitter](https://img.shields.io/badge/Twitter-@iamkgn-55ACEE.svg)](http://twitter.com/iamkgn)\n[![Follow](https://img.shields.io/github/followers/kgn.svg?style=social\u0026label=Follow%20%40kgn)](https://github.com/kgn)\n[![Star](https://img.shields.io/github/stars/kgn/KGNGradientView.svg?style=social\u0026label=Star)](https://github.com/kgn/KGNGradientView)\n\n## Installing\n\n### Carthage\n```\ngithub \"kgn/KGNGradientView\"\n```\n\n### CocoaPods\n```\npod 'KGNGradientView'\n```\n\n## Examples\n\n### Gradient\n`Gradient` is a struct that encapsulates the start and end colors of the gradient.\n\n### VerticalGradientView\nA `UIView` subclass that creates a view with a linear gradient.\n``` Swift\nlet view = VerticalGradientView()\nview.gradient = Gradient(startColor: UIColor.redColor(), endColor: UIColor.blueColor())\n```\n\n### RadialGradientView\nA `UIView` subclass that creates a view with a radial gradient.\n``` Swift\nlet view = RadialGradientView()\nview.gradient = Gradient(startColor: UIColor.redColor(), endColor: UIColor.blueColor())\n```\n\n## Progress\n- [X] Tests\n- [X] Travis\n- [X] Badges\n- [X] Carthage\n- [X] CocoaPods\n- [X] Description\n- [X] Documentation\n- [ ] AppleTV\n- [X] Prebuilt Frameworks\n- [ ] Travis Test Matrix\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkgn%2Fkgngradientview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkgn%2Fkgngradientview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkgn%2Fkgngradientview/lists"}