{"id":13700388,"url":"https://github.com/soffes/GradientView","last_synced_at":"2025-05-04T18:35:11.383Z","repository":{"id":9254122,"uuid":"11078077","full_name":"soffes/GradientView","owner":"soffes","description":"Easily use gradients in UIKit for iOS \u0026 tvOS","archived":false,"fork":false,"pushed_at":"2020-06-03T16:47:21.000Z","size":364,"stargazers_count":628,"open_issues_count":8,"forks_count":98,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-04-26T19:05:25.843Z","etag":null,"topics":["carthage","cocoapods","ios","swift","tvos"],"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/soffes.png","metadata":{"files":{"readme":"Readme.markdown","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":"2013-06-30T21:32:05.000Z","updated_at":"2025-04-04T17:12:40.000Z","dependencies_parsed_at":"2022-11-28T10:34:14.896Z","dependency_job_id":null,"html_url":"https://github.com/soffes/GradientView","commit_stats":null,"previous_names":["soffes/samgradientview"],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soffes%2FGradientView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soffes%2FGradientView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soffes%2FGradientView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soffes%2FGradientView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soffes","download_url":"https://codeload.github.com/soffes/GradientView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252383206,"owners_count":21739288,"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":["carthage","cocoapods","ios","swift","tvos"],"created_at":"2024-08-02T20:00:55.183Z","updated_at":"2025-05-04T18:35:06.359Z","avatar_url":"https://github.com/soffes.png","language":"Swift","readme":"# Gradient View\n\nEasily use gradients in UIKit. Gradient View is a simple UIView wrapper around CGGradient.\n\n[![Version](https://img.shields.io/github/release/soffes/GradientView.svg)](https://github.com/soffes/GradientView/releases)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![CocoaPods compatible](https://img.shields.io/cocoapods/v/GradientView.svg)](https://cocoapods.org/pods/GradientView)\n\n\n## Usage\n\n``` swift\n// Initialize a gradient view\nlet gradientView = GradientView(frame: CGRect(x: 20, y: 20, width: 280, height: 280))\n\n// Set the gradient colors\ngradientView.colors = [.green, .yellow]\n\n// Optionally set some locations\ngradientView.locations = [0.8, 1.0]\n\n// Optionally change the direction. The default is vertical.\ngradientView.direction = .horizontal\n\n// Add some borders too if you want\ngradientView.topBorderColor = .red\ngradientView.bottomBorderColor = .blue\n\n// Add it as a subview in all of its awesome\nview.addSubview(gradientView)\n```\n\nSee the [source](GradientView/GradientView.swift) for full documentation.\n\n\n## Example\n\n\u003cimg src=\"Example/Screenshots/Screenshot1@2x.png\" width=\"320\" alt=\"Screenshot 1\"\u003e \u003cimg src=\"Example/Screenshots/Screenshot2@2x.png\" width=\"320\" alt=\"Screenshot 2\"\u003e\n\nOpen up the included Xcode project for an example app.\n\n\n## Installation\n\nGradient View supports installation with [Carthage](https://github.com/Carthage/Carthage) or [CocoaPods](https://cocoapods.org/pods/GradientView). You can also simply add [GradientView.swift](GradientView/GradientView.swift) to your project if you’d prefer.\n\n","funding_links":[],"categories":["Swift"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoffes%2FGradientView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoffes%2FGradientView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoffes%2FGradientView/lists"}