{"id":17046873,"url":"https://github.com/stevebarnegren/sbgradientview","last_synced_at":"2025-06-22T13:06:27.665Z","repository":{"id":62453377,"uuid":"71906765","full_name":"SteveBarnegren/SBGradientView","owner":"SteveBarnegren","description":"Convenient UIView wrapper for CAGradientLayer","archived":false,"fork":false,"pushed_at":"2018-01-15T11:05:57.000Z","size":89,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-04T02:58:14.849Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/SteveBarnegren.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":"2016-10-25T14:43:06.000Z","updated_at":"2018-01-15T11:03:34.000Z","dependencies_parsed_at":"2022-11-02T00:00:26.444Z","dependency_job_id":null,"html_url":"https://github.com/SteveBarnegren/SBGradientView","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/SteveBarnegren/SBGradientView","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SteveBarnegren%2FSBGradientView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SteveBarnegren%2FSBGradientView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SteveBarnegren%2FSBGradientView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SteveBarnegren%2FSBGradientView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SteveBarnegren","download_url":"https://codeload.github.com/SteveBarnegren/SBGradientView/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SteveBarnegren%2FSBGradientView/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261296913,"owners_count":23137218,"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":[],"created_at":"2024-10-14T09:47:42.280Z","updated_at":"2025-06-22T13:06:22.644Z","avatar_url":"https://github.com/SteveBarnegren.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SBGradientView\n\n[![Version](https://img.shields.io/cocoapods/v/SBGradientView.svg?style=flat)](http://cocoapods.org/pods/SBGradientView)\n[![License](https://img.shields.io/cocoapods/l/SBGradientView.svg?style=flat)](http://cocoapods.org/pods/SBGradientView)\n[![Platform](https://img.shields.io/cocoapods/p/SBGradientView.svg?style=flat)](http://cocoapods.org/pods/SBGradientView)\n\nConvenient UIView wrapper around CAGradientLayer\n\n## How to use\n\n```\nlet colors = [UIColor.red, UIColor.orange, UIColor.green, UIColor.blue]\nlet gradientView = GradientView(direction: .fromTop, colors: colors)\n```\n\n![IMG](https://raw.githubusercontent.com/SteveBarnegren/SBGradientView/master/ScreenShots/Screenshot.png)\n\nFour directions are supported:\n\n```\npublic enum Direction {\n        case fromTop\n        case fromBottom\n        case fromLeft\n        case fromRight\n    }\n```\n\n## Installation\n\n**CocoaPods**\n\n```ruby\npod \"SBGradientView\"\n```\n\n**Manual**\n\nCopy ```GradientView.swift``` in to your project\n\n## Author\n\n[@SteveBarnegren](https://twitter.com/stevebarnegren)\n\n## License\n\nSBGradientView is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevebarnegren%2Fsbgradientview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstevebarnegren%2Fsbgradientview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevebarnegren%2Fsbgradientview/lists"}