{"id":2349,"url":"https://github.com/cruisediary/Pastel","last_synced_at":"2025-08-06T13:31:58.595Z","repository":{"id":45542436,"uuid":"90341204","full_name":"cruisediary/Pastel","owner":"cruisediary","description":"🎨 Gradient animation effect like Instagram","archived":false,"fork":false,"pushed_at":"2022-10-30T11:40:59.000Z","size":16734,"stargazers_count":3502,"open_issues_count":20,"forks_count":185,"subscribers_count":40,"default_branch":"master","last_synced_at":"2024-12-05T15:05:01.498Z","etag":null,"topics":["animation","gradient","instagram","pastel","swift"],"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/cruisediary.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":"2017-05-05T05:45:54.000Z","updated_at":"2024-11-15T06:39:08.000Z","dependencies_parsed_at":"2022-08-02T18:30:51.497Z","dependency_job_id":null,"html_url":"https://github.com/cruisediary/Pastel","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cruisediary%2FPastel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cruisediary%2FPastel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cruisediary%2FPastel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cruisediary%2FPastel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cruisediary","download_url":"https://codeload.github.com/cruisediary/Pastel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228905436,"owners_count":17989764,"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":["animation","gradient","instagram","pastel","swift"],"created_at":"2024-01-05T20:16:11.522Z","updated_at":"2024-12-09T14:30:39.569Z","avatar_url":"https://github.com/cruisediary.png","language":"Swift","funding_links":[],"categories":["UI","Libs","Swift","UI and SwiftUI","Animation [🔝](#readme)"],"sub_categories":["Animation","Other free courses"],"readme":"# Pastel\n🎨 Gradient animation effect like Instagram\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[![CI Status](http://img.shields.io/travis/cruisediary/Pastel.svg?style=flat)](https://travis-ci.org/cruisediary/Pastel)\n[![Version](https://img.shields.io/cocoapods/v/Pastel.svg?style=flat)](http://cocoapods.org/pods/Pastel)\n[![License](https://img.shields.io/cocoapods/l/Pastel.svg?style=flat)](http://cocoapods.org/pods/Pastel)\n[![Platform](https://img.shields.io/cocoapods/p/Pastel.svg?style=flat)](http://cocoapods.org/pods/Pastel)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n\n![pastel_01.gif](README/Pastel_01.gif)\n![pastel_02.gif](README/Pastel_02.gif)\n![pastel_03.gif](README/Pastel_03.gif)\n\n## Example\n```swift\noverride func viewDidLoad() {\n    super.viewDidLoad()\n\n    let pastelView = PastelView(frame: view.bounds)\n\n    // Custom Direction\n    pastelView.startPastelPoint = .bottomLeft\n    pastelView.endPastelPoint = .topRight\n\n    // Custom Duration\n    pastelView.animationDuration = 3.0\n\n    // Custom Color\n    pastelView.setColors([UIColor(red: 156/255, green: 39/255, blue: 176/255, alpha: 1.0),\n                          UIColor(red: 255/255, green: 64/255, blue: 129/255, alpha: 1.0),\n                          UIColor(red: 123/255, green: 31/255, blue: 162/255, alpha: 1.0),\n                          UIColor(red: 32/255, green: 76/255, blue: 255/255, alpha: 1.0),\n                          UIColor(red: 32/255, green: 158/255, blue: 255/255, alpha: 1.0),\n                          UIColor(red: 90/255, green: 120/255, blue: 127/255, alpha: 1.0),\n                          UIColor(red: 58/255, green: 255/255, blue: 217/255, alpha: 1.0)])\n\n    pastelView.startAnimation()\n    view.insertSubview(pastelView, at: 0)\n}\n```\n\n## 🎨 Customize Gradient Colors\n#### Designed by Alexander Zaytsev, https://dribbble.com/anwaltzzz\n![Gradient.png](README/Gradient.png)\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Requirements\nPastel is written in Swift 3+. iOS 8.0+ Required\n\n## Installation\n\nPastel is available through [CocoaPods](http://cocoapods.org) or [Carthage](https://github.com/Carthage/Carthage).\n\n### Cocoapods\n```ruby\npod \"Pastel\"\n```\n\n### Carthage\n```\ngithub \"cruisediary/Pastel\" ~\u003e 0.6.0\n```\n\n## Example\n- [Passcode](https://github.com/cruisediary/Passcode): A simple Passcode application using RxSwift, ReactorKit, IGListKit with Pastel\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\n\ncruz, cruzdiary@gmail.com\n\n## Thanks\n\nMany thanks to [**the contributors**](https://github.com/cruisediary/Pastel/graphs/contributors) of this project.\n\n## License\n\nPastel 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%2Fcruisediary%2FPastel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcruisediary%2FPastel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcruisediary%2FPastel/lists"}