{"id":25195958,"url":"https://github.com/simplisticated/degree","last_synced_at":"2025-10-15T21:21:01.976Z","repository":{"id":56908393,"uuid":"138185227","full_name":"simplisticated/Degree","owner":"simplisticated","description":"Gradient made in Swift","archived":false,"fork":false,"pushed_at":"2018-07-17T18:50:27.000Z","size":432,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-11T08:44:58.976Z","etag":null,"topics":["color","gradient","swift","uiview","xcode"],"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/simplisticated.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":"2018-06-21T14:56:40.000Z","updated_at":"2021-12-23T11:05:17.000Z","dependencies_parsed_at":"2022-08-20T19:50:29.860Z","dependency_job_id":null,"html_url":"https://github.com/simplisticated/Degree","commit_stats":null,"previous_names":["igormatyushkin014/degree"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/simplisticated/Degree","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplisticated%2FDegree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplisticated%2FDegree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplisticated%2FDegree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplisticated%2FDegree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simplisticated","download_url":"https://codeload.github.com/simplisticated/Degree/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplisticated%2FDegree/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263819174,"owners_count":23516118,"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":["color","gradient","swift","uiview","xcode"],"created_at":"2025-02-10T01:39:12.706Z","updated_at":"2025-10-15T21:21:01.871Z","avatar_url":"https://github.com/simplisticated.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\" \u003e\n\t\u003cimg src=\"/Images/logo_2048_800.png\" alt=\"Degree\" title=\"Degree\" width=\"50%\" height=\"50%\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\t\u003ca href=\"https://swift.org\"\u003e\n\t\t\u003cimg src=\"https://img.shields.io/badge/Swift-4.0-orange.svg?style=flat\"\u003e\n\t\u003c/a\u003e\n\t\u003ca href=\"https://cocoapods.org\"\u003e\n\t\t\u003cimg src=\"https://img.shields.io/cocoapods/v/Degree.svg\"\u003e\n\t\u003c/a\u003e\n\t\u003ca href=\"https://cocoapods.org\"\u003e\n\t\t\u003cimg src=\"https://img.shields.io/cocoapods/dt/Degree.svg\"\u003e\n\t\u003c/a\u003e\n\t\u003ca href=\"https://tldrlegal.com/license/mit-license\"\u003e\n\t\t\u003cimg src=\"https://img.shields.io/badge/License-MIT-blue.svg?style=flat\"\u003e\n\t\u003c/a\u003e\n\u003c/p\u003e\n\n## At a Glance\n\n`Degree` is a tool for making gradient in Swift.\n\n## How To Get Started\n\n- Copy content of `Source` folder to your project.\n\nor\n\n- Use `Degree` cocoapod\n\n## Requirements\n\n* iOS 9 and later\n* Xcode 9 and later\n* Swift 4\n\n## Usage\n\nExample of usage:\n\n```swift\nlet gradientView = GradientView()\ngradientView.gradient = Gradient.make\n    .from(\n        x: .left,\n        y: .top\n    )\n    .to(\n        x: .right,\n        y: .bottom\n    )\n    .step(withColor: .white, andLocation: 0.0)\n    .step(withColor: .orange, andLocation: 0.5)\n    .step(withColor: .purple, andLocation: 1.0)\n    .get\n```\n\nEach step is defined by its color and location, which is a `Float` value from `0.0` to `1.0`.\n\n## License\n\n`Degree` is available under the MIT license. See the [LICENSE](./LICENSE) file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplisticated%2Fdegree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimplisticated%2Fdegree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplisticated%2Fdegree/lists"}