{"id":2261,"url":"https://github.com/BalestraPatrick/ParticlesLoadingView","last_synced_at":"2025-08-02T23:32:42.905Z","repository":{"id":62450551,"uuid":"59150440","full_name":"BalestraPatrick/ParticlesLoadingView","owner":"BalestraPatrick","description":"A customizable SpriteKit particles animation on the border of a view.","archived":false,"fork":false,"pushed_at":"2018-05-20T17:08:52.000Z","size":252,"stargazers_count":974,"open_issues_count":1,"forks_count":42,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-06-26T02:48:03.982Z","etag":null,"topics":["animation","ios","particle-emitter-editor","particles-animations","spritekit","swift"],"latest_commit_sha":null,"homepage":null,"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/BalestraPatrick.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":"2016-05-18T20:52:53.000Z","updated_at":"2025-05-26T00:35:37.000Z","dependencies_parsed_at":"2022-11-02T01:01:32.221Z","dependency_job_id":null,"html_url":"https://github.com/BalestraPatrick/ParticlesLoadingView","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/BalestraPatrick/ParticlesLoadingView","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BalestraPatrick%2FParticlesLoadingView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BalestraPatrick%2FParticlesLoadingView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BalestraPatrick%2FParticlesLoadingView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BalestraPatrick%2FParticlesLoadingView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BalestraPatrick","download_url":"https://codeload.github.com/BalestraPatrick/ParticlesLoadingView/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BalestraPatrick%2FParticlesLoadingView/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268472924,"owners_count":24255786,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","ios","particle-emitter-editor","particles-animations","spritekit","swift"],"created_at":"2024-01-05T20:16:09.181Z","updated_at":"2025-08-02T23:32:42.570Z","avatar_url":"https://github.com/BalestraPatrick.png","language":"Swift","readme":"# ParticlesLoadingView\n\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![Version](https://img.shields.io/cocoapods/v/ParticlesLoadingView.svg?style=flat)](http://cocoapods.org/pods/ParticlesLoadingView)\n[![License](https://img.shields.io/cocoapods/l/ParticlesLoadingView.svg?style=flat)](http://cocoapods.org/pods/ParticlesLoadingView)\n[![Platform](https://img.shields.io/cocoapods/p/ParticlesLoadingView.svg?style=flat)](http://cocoapods.org/pods/ParticlesLoadingView)\n\n\u003cp align=\"center\"\u003e\u003cimg src =\"http://i.giphy.com/3oEjHW9cwpB7ljQGOc.gif\" width=\"600px\"/\u003e\u003c/p\u003e\n\n## Description\nWith `ParticlesLoadingView` you can create your own amazing `SpriteKit` particles animations with the Xcode's built-in [Particle Emitter Editor](https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/xcode_guide-particle_emitter/Introduction/Introduction.html) that looks like the following picture.\nGo ahead and create your own particles animation by doing File ➡️ New File ➡️ iOS Resource ➡️ SpriteKit Particle File.\n\n![](Resources/ParticlesEmitterEditor.png)\n\n\n## Usage\nTo see it in action, run the example project, clone the repo, and run `pod install` from the `Example` directory first. The example project shows how to set up `ParticlesLoadingView` in a few different ways. \n\nThe easiest way to add a particles animation around the border of any `UIView` subclass is to use the extension method as follows:\n\n```swift\n\nlet view = ... // Your UIView subclass here\nview.addParticlesAnimation(effect: ParticleEffect.Fire) // Use a built-in effect\nview.addParticlesAnimation(emitter: emitter) // Use your own SKEmitterNode\n```\n\nYou can also use the already provided `ParticlesLoadingView` class to create an animation. Instantiate it by code or in Storyboard and select a built-in `ParticleEffect` or set the `scene.emitterNode` to your custom `SKEmitterNode` object.\n\n```swift\nvar loadingView: ParticlesLoadingView = {\n    let view = ParticlesLoadingView(frame: 0, y: 0, width: 75, height: 75))\n    view.particleEffect = .Spark\n    view.duration = 1.5\n    view.layer.cornerRadius = 15.0\n    return view\n}()\n\n// OR provide your own SKEmitterNode\n\nlet emitter = NSKeyedUnarchiver.unarchiveObjectWithFile(NSBundle.mainBundle().pathForResource(\"Spark\", ofType: \"sks\")!) as? SKEmitterNode\nif let emitter = emitter { \n    loadingView.scene.emitterNode = emitter\n   \tloadingView.startAnimating()\n}\n```\n \n## Customizations\n\n```swift\n/// Duration in seconds of the animation to complete a tour on the border of the view.\npublic var duration = 2.0\n    \n/// The size of each particle image. This value is used to calculate the inner padding of the view path so that the emitted particles are visible.\npublic var particlesSize: CGFloat = 5.0\n    \n/// The emitter of particles that is animated along the border of the view.\npublic var emitterNode: SKEmitterNode? = nil\n```\nYou can provide your own particle emitter node by designing an animation with the particle emitter editor and creating a `SKEmitterNode`.\nIf you want to customize it further than that, the project is documented so go ahead and [🍴](https://github.com/BalestraPatrick/ParticlesLoadingView#fork-destination-box) it.\n\nIf you think a feature should be included in this project, submit a PR or open a new issue.\n\n## Installation\n\n`ParticlesLoadingView` is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your `Podfile`:\n\n```ruby\npod \"ParticlesLoadingView\"\n```\n\nYou can also use [Carthage](https://github.com/Carthage/Carthage) if you prefer. Add this line to your `Cartfile`.\n\n```ruby\ngithub \"BalestraPatrick/ParticlesLoadingView\"\n```\n## Requirements\niOS 9.0 and Swift 3 are required. \n\nIf you are using Swift 4, please use the [swift4 branch](https://github.com/BalestraPatrick/ParticlesLoadingView/tree/swift4).\n\nIf you are using Swift 2.3, please use the [swift2.3 branch](https://github.com/BalestraPatrick/ParticlesLoadingView/tree/swift2.3).\n\n## Author\n\nI'm [Patrick Balestra](http://www.patrickbalestra.com).\nEmail: [me@patrickbalestra.com](mailto:me@patrickbalestra.com)\nTwitter: [@BalestraPatrick](http://twitter.com/BalestraPatrick).\n\n## License\n\n`ParticlesLoadingView` is available under the MIT license. See the [LICENSE](LICENSE) file for more info.\n","funding_links":[],"categories":["UI","Content"],"sub_categories":["Activity Indicator","Other free courses"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBalestraPatrick%2FParticlesLoadingView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FBalestraPatrick%2FParticlesLoadingView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBalestraPatrick%2FParticlesLoadingView/lists"}