{"id":13700391,"url":"https://github.com/uias/Randient","last_synced_at":"2025-05-04T18:35:06.562Z","repository":{"id":41783388,"uuid":"148010350","full_name":"uias/Randient","owner":"uias","description":"🎨 Radient, random gradients in Swift","archived":true,"fork":false,"pushed_at":"2023-01-09T22:29:39.000Z","size":19225,"stargazers_count":74,"open_issues_count":5,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-08T00:46:35.991Z","etag":null,"topics":["gradients","ios","swift","ui"],"latest_commit_sha":null,"homepage":"https://uigradients.com","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/uias.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-09T09:17:17.000Z","updated_at":"2025-01-26T15:06:15.000Z","dependencies_parsed_at":"2023-02-08T15:00:53.781Z","dependency_job_id":null,"html_url":"https://github.com/uias/Randient","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uias%2FRandient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uias%2FRandient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uias%2FRandient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uias%2FRandient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uias","download_url":"https://codeload.github.com/uias/Randient/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252383194,"owners_count":21739287,"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":["gradients","ios","swift","ui"],"created_at":"2024-08-02T20:00:55.246Z","updated_at":"2025-05-04T18:35:01.510Z","avatar_url":"https://github.com/uias.png","language":"Swift","funding_links":[],"categories":["Swift"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src=\".artwork/logo.png\" width=\"890\" alt=\"Tabman\"/\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://travis-ci.org/uias/Randient\"\u003e\n        \u003cimg src=\"https://travis-ci.org/uias/Randient.svg?branch=master\" /\u003e\n    \u003c/a\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Swift-4 | 5-orange.svg?style=flat\" /\u003e\n    \u003ca href=\"https://cocoapods.org/pods/Randient\"\u003e\n        \u003cimg src=\"https://img.shields.io/cocoapods/v/Randient.svg\" alt=\"CocoaPods\" /\u003e\n    \u003c/a\u003e\n\t\u003ca href=\"https://cocoapods.org/pods/Randient\"\u003e\n        \u003cimg src=\"https://img.shields.io/cocoapods/p/Randient.svg\" alt=\"Platforms\" /\u003e\n    \u003c/a\u003e\n\t\u003ca href=\"https://github.com/Carthage/Carthage\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat\" /\u003e\n    \u003c/a\u003e\n\t\u003ca href=\"https://github.com/uias/Randient/releases\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/release/uias/Randient.svg\" /\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\".artwork/randient.gif\" width=\"450\" alt=\"Tabman\"/\u003e\n\u003c/p\u003e\n\n## ⭐️ Features\n\n- [x] Beautiful, automatically generated gradients from [uiGradients](https://uigradients.com) in Swift.\n- [x] Smoothly animating, randomizable gradient views.\n- [x] Life is like a box of chocolates.\n\n## 📋 Requirements\n\niOS 9 \u0026 Swift 4 / 5.\n\n## 📲 Installation\n\n### CocoaPods\n\nTo install Randient using CocoaPods, add this line to your `Podfile`:\n\n```ruby\npod 'Randient'\n```\n\n### Carthage\n\nTo install Randient using Carthage, add this line to your `Cartfile`:\n\n```ruby\ngithub \"Randient\"\n```\n\n## 🚀 Usage\n\n### Gradient Roulette\n`RandientView` is a simple view that will display a randomly selected gradient from the [uiGradients](https://uigradients.com) catalog.\n\n```swift\nlet randientView = RandientView()\nrandientView.frame = CGRect(x: 0, y: 0, width: 100, height: 100)\nview.addSubview(randientView)\n```\n\nUpdating to a new gradient is as simple as...\n\n```swift\nrandientView.randomize(animated: true)\n```\n\n### Those wonderful gradients\n\nAn enum of all the gradients from [uiGradients](https://uigradients.com) is generated every time that Randient is built.\n\nThese are available as an enum via `UIGradient`.\n\n```swift\nlet gradient = UIGradient.royalBlue\nlet colors = gradient.data.colors\n```\n\nIf you're feeling lucky, a randomized `UIGradient` can also be retrieved.\n\n```swift\nlet randomGradient = Randient.randomize()\n```\n\n#### The raw stuff\n\nEach `UIGradient` has associated `Data` which can be accessed via `.data`.\n\n```swift\nstruct Data {\n    public let name: String\n    public let colors: [UIColor]\n}\n```\n\n`Metadata` is also available, accessible via `.metadata`.\n\n```swift\nstruct Metadata {\n    public let isPredominantlyLight: Bool\n}\n```\n\n### Gradient View\n\n`RandientView` inherits from `GradientView`, which under the hood uses simply uses a `CAGradientLayer` for rendering gradients.\n\n`GradientView` provides the following:\n- `.colors: [UIColor]?` - Colors of the gradient.\n- `.locations: [Double]?` - Locations of each gradient stop.\n- `.startPoint: CGPoint` - Start point of the gradient (Defaults to `0.5, 0.0`).\n- `.endPoint: CGPoint` - End point of the gradient (Defaults to `0.5, 1.0`).\n\n## 👨🏻‍💻 About\n- Created by [Merrick Sapsford](https://github.com/msaps) ([@MerrickSapsford](https://twitter.com/MerrickSapsford))\n- Heavily inspired by [UIColor-uiGradientsAdditions](https://github.com/kaiinui/UIColor-uiGradientsAdditions) by [kaiinui](https://github.com/kaiinui).\n\n## ❤️ Contributing\nBug reports and pull requests are welcome on GitHub at [https://github.com/uias/Randient](https://github.com/uias/Randient).\n\n## 👮🏻‍♂️ License\nThe library is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuias%2FRandient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuias%2FRandient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuias%2FRandient/lists"}