{"id":15038022,"url":"https://github.com/gradients/gradients","last_synced_at":"2026-03-27T02:42:32.678Z","repository":{"id":52525439,"uuid":"150381229","full_name":"Gradients/Gradients","owner":"Gradients","description":"🌔 A curated collection of splendid 180+ gradients made in swift","archived":false,"fork":false,"pushed_at":"2022-11-13T02:59:59.000Z","size":1451,"stargazers_count":806,"open_issues_count":8,"forks_count":54,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-04T06:09:58.338Z","etag":null,"topics":["carthage","cocoapods","design","gradient","ios","layer","palette","swift","swift4","ui","ux","webgradients"],"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/Gradients.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-09-26T06:50:29.000Z","updated_at":"2025-03-27T22:19:13.000Z","dependencies_parsed_at":"2022-08-20T20:20:48.262Z","dependency_job_id":null,"html_url":"https://github.com/Gradients/Gradients","commit_stats":null,"previous_names":["cruisediary/gradients"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gradients%2FGradients","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gradients%2FGradients/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gradients%2FGradients/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gradients%2FGradients/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gradients","download_url":"https://codeload.github.com/Gradients/Gradients/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247128753,"owners_count":20888235,"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","design","gradient","ios","layer","palette","swift","swift4","ui","ux","webgradients"],"created_at":"2024-09-24T20:36:50.981Z","updated_at":"2026-03-27T02:42:32.621Z","avatar_url":"https://github.com/Gradients.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gradients\n\n🌔 A curated collection of 180 splendid gradients made in swift\n\n![logo](README/gradients.png)\n\n[![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome)\n![Swift](https://img.shields.io/badge/Swift-5.0-orange.svg)\n[![Swift Package Manager](https://img.shields.io/badge/Swift_Package_Manager-compatible-orange)](https://img.shields.io/badge/Swift_Package_Manager-compatible-orange)\n[![Version](https://img.shields.io/cocoapods/v/Gradients.svg?style=flat)](http://cocoapods.org/pods/Gradients)\n[![License](https://img.shields.io/cocoapods/l/Gradients.svg?style=flat)](http://cocoapods.org/pods/Gradients)\n[![Platform](https://img.shields.io/cocoapods/p/Gradients.svg?style=flat)](http://cocoapods.org/pods/Gradients)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n\n180 splendid Gradients inspired by [itmeo/webgradients](https://github.com/itmeo/webgradients)\n[View all the gradients here »](https://webgradients.com)\n\n## 🏄🏼 Easy To Use\n```swift\nview.layer.addSubLayer(Gradients.deepBlue.layer)\n```\n\n#### 180+ Gradients\n```swift\npublic enum Gradients: Int, CaseIterable {\n    case warmFlame = 1\n    case nightFade\n    case springWarmth\n    case juicyPeach\n    //...\n    case fabledSunset\n    case perfectBlue\n}\n```\n\n#### Direction\n```swift\npublic enum Direction {\n    case top\n    case left\n    case right\n    case bottom\n    case degree(CGFloat)\n}\n```\n\n## 🎨 Customize\n\n![customize](README/custom.png)\n```swift\n// degree for radian direction supported\nlet customLayer = Gradients.linear(to: .degree(-225), colors: [0x231557, 0x44107A, 0xFF1361, 0xFFF800], locations: [0.0, 0.29, 0.67, 1.0]) // Fabled Sunset\nview.layer.addSubLayer(customLayer)\n```\n\n## Examples\n* [Comets](https://github.com/cruisediary/Comets): ☄️Comets: Animating Particles in Swift.\n* [DeliTodo](https://github.com/kawoou/DeliTodo): Todo application for iOS using Deli.\n\n## Requirements\nGradients is written in  Xcode 10, Swift 4+, iOS 9.0+ Required\n\n## 📲 Installation\nGradients is available through [Swift Package Manager](https://www.swift.org/package-manager/), [Cocoapods](http://cocoapods.org) or [Carthage](https://github.com/Carthage/Carthage)\n\n### Swift Package Manager (Recommended)\n```\ndependencies: [\n    .package(url: \"https://github.com/Gradients/Gradients.git\", .upToNextMajor(from: \"0.3.1\"))\n]\n```\n\n### Cocoapods\n```ruby\npod \"Gradients\"\n```\n\n### Carthage\n```\ngithub \"cruisediary/Gradients\" ~\u003e 0.3.1\n```\n\n## ❤️ Contribution\nPull requests are always welcomed 🏄🏼\n\n## Awesome\n* [awesome-swift](https://github.com/matteocrippa/awesome-swift) - A collaborative list of awesome Swift libraries and resources. Feel free to contribute!\n* [awesome-gradient](https://github.com/cruisediary/awesome-gradient) - 🌈 A curated list of awesome Gradient frameworks, libraries and software and resources\n\n## 👨‍💻 Author\ncruz, cruzdiary@gmail.com\n\n## 🛡 License\n\nGradients 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%2Fgradients%2Fgradients","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgradients%2Fgradients","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgradients%2Fgradients/lists"}