{"id":13465326,"url":"https://github.com/cruisediary/Comets","last_synced_at":"2025-03-25T16:31:37.407Z","repository":{"id":56906384,"uuid":"152174609","full_name":"cruisediary/Comets","owner":"cruisediary","description":"☄️Comets: Animating Particles in Swift","archived":false,"fork":false,"pushed_at":"2019-08-03T07:03:06.000Z","size":6035,"stargazers_count":607,"open_issues_count":3,"forks_count":42,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-04-28T19:33:17.073Z","etag":null,"topics":["animation","calayer","comet","particle","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":"2018-10-09T02:21:25.000Z","updated_at":"2024-03-14T21:10:44.000Z","dependencies_parsed_at":"2022-08-21T03:50:10.922Z","dependency_job_id":null,"html_url":"https://github.com/cruisediary/Comets","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cruisediary%2FComets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cruisediary%2FComets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cruisediary%2FComets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cruisediary%2FComets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cruisediary","download_url":"https://codeload.github.com/cruisediary/Comets/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222088539,"owners_count":16928976,"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","calayer","comet","particle","swift"],"created_at":"2024-07-31T15:00:27.320Z","updated_at":"2024-10-29T17:30:45.197Z","avatar_url":"https://github.com/cruisediary.png","language":"Swift","funding_links":[],"categories":["Libs","Animation","Animation [🔝](#readme)","UI and SwiftUI"],"sub_categories":["Animation"],"readme":"# Comets\n☄️ Comets: Animating Particles in Swift\n\n![Swift](https://img.shields.io/badge/Swift-5.0-orange.svg)\n[![Version](https://img.shields.io/cocoapods/v/Comets.svg?style=flat)](http://cocoapods.org/pods/Comets)\n[![License](https://img.shields.io/cocoapods/l/Comets.svg?style=flat)](http://cocoapods.org/pods/Comets)\n[![Platform](https://img.shields.io/cocoapods/p/Comets.svg?style=flat)](http://cocoapods.org/pods/Comets)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/cruisediary/Comets)\n\n![comet.gif](README/comet.gif)\n\nanimation made by [kevin](https://medium.com/@kwijst) as part of Voicy design\n\nimplements **Bennet van der Linden** [medium](https://medium.com/call-voicy/comets-animating-particles-in-swift-3431a7f1b250) Comets: Animating Particles in Swift\n\n## Example\n```swift\n// Customize your comet\nlet width = view.bounds.width\nlet height = view.bounds.height\nlet comets = [Comet(startPoint: CGPoint(x: 100, y: 0),\n                    endPoint: CGPoint(x: 0, y: 100),\n                    lineColor: UIColor.white.withAlphaComponent(0.2),\n                    cometColor: UIColor.white),\n              Comet(startPoint: CGPoint(x: 0.4 * width, y: 0),\n                    endPoint: CGPoint(x: width, y: 0.8 * width),\n                    lineColor: UIColor.white.withAlphaComponent(0.2),\n                    cometColor: UIColor.white),\n              Comet(startPoint: CGPoint(x: 0.8 * width, y: 0),\n                    endPoint: CGPoint(x: width, y: 0.2 * width),\n                    lineColor: UIColor.white.withAlphaComponent(0.2),\n                    cometColor: UIColor.white),\n              Comet(startPoint: CGPoint(x: width, y: 0.2 * height),\n                    endPoint: CGPoint(x: 0, y: 0.25 * height),\n                    lineColor: UIColor.white.withAlphaComponent(0.2),\n                    cometColor: UIColor.white),\n              Comet(startPoint: CGPoint(x: 0, y: height - 0.8 * width),\n                    endPoint: CGPoint(x: 0.6 * width, y: height),\n                    lineColor: UIColor.white.withAlphaComponent(0.2),\n                    cometColor: UIColor.white),\n              Comet(startPoint: CGPoint(x: width - 100, y: height),\n                    endPoint: CGPoint(x: width, y: height - 100),\n                    lineColor: UIColor.white.withAlphaComponent(0.2),\n                    cometColor: UIColor.white),\n              Comet(startPoint: CGPoint(x: 0, y: 0.8 * height),\n                    endPoint: CGPoint(x: width, y: 0.75 * height),\n                    lineColor: UIColor.white.withAlphaComponent(0.2),\n                    cometColor: UIColor.white)]\n\n// draw line track and animate\nfor comet in comets {\n    view.layer.addSublayer(comet.drawLine())\n    view.layer.addSublayer(comet.animate())\n}\n```\n\n![comet.gif](README/Comets.gif)\n\n## Requirements\nComets is written in  Xcode 10, Swift 5.0, iOS 9.0 Required\n\n## 📲 Installation\nComets is available through [Cocoapods](http://cocoapods.org) or [Carthage](https://github.com/Carthage/Carthage).\n\n### Cocoapods\n```ruby\npod \"Comets\"\n```\n\n### Carthage\n```\ngithub \"cruisediary/Comets\" ~\u003e 0.3.1\n```\n\n## ❤️ Contribution\nPull requests are always welcomed 🏄🏼\n\n## 👨‍💻 Author\ncruz, cruzdiary@gmail.com\n\n## 🛡 License\n\nComets 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%2FComets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcruisediary%2FComets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcruisediary%2FComets/lists"}