{"id":2319,"url":"https://github.com/sudeepag/SAConfettiView","last_synced_at":"2025-08-02T23:32:59.542Z","repository":{"id":2951664,"uuid":"47985159","full_name":"sudeepag/SAConfettiView","owner":"sudeepag","description":"Confetti! Who doesn't like confetti?","archived":false,"fork":false,"pushed_at":"2022-06-07T10:05:54.000Z","size":74,"stargazers_count":1543,"open_issues_count":46,"forks_count":268,"subscribers_count":26,"default_branch":"master","last_synced_at":"2024-04-24T14:46:57.533Z","etag":null,"topics":[],"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/sudeepag.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":"2015-12-14T15:55:16.000Z","updated_at":"2024-04-11T07:30:46.000Z","dependencies_parsed_at":"2022-11-28T10:33:53.489Z","dependency_job_id":null,"html_url":"https://github.com/sudeepag/SAConfettiView","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudeepag%2FSAConfettiView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudeepag%2FSAConfettiView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudeepag%2FSAConfettiView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudeepag%2FSAConfettiView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sudeepag","download_url":"https://codeload.github.com/sudeepag/SAConfettiView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228503181,"owners_count":17930529,"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":[],"created_at":"2024-01-05T20:16:10.762Z","updated_at":"2024-12-06T17:30:59.583Z","avatar_url":"https://github.com/sudeepag.png","language":"Swift","funding_links":[],"categories":["UI","Content","Animation","Swift"],"sub_categories":["Animation","Effects","Other free courses"],"readme":"# SAConfettiView\n\n![language](https://img.shields.io/badge/Language-%20Swift%20-orange.svg)\n![CI Status](https://img.shields.io/badge/build-passing-brightgreen.svg)\n[![Version](https://img.shields.io/cocoapods/v/SAConfettiView.svg?style=flat)](http://cocoapods.org/pods/SAConfettiView)\n[![License](https://img.shields.io/cocoapods/l/SAConfettiView.svg?style=flat)](http://cocoapods.org/pods/SAConfettiView)\n[![Platform](https://img.shields.io/cocoapods/p/SAConfettiView.svg?style=flat)](http://cocoapods.org/pods/SAConfettiView)\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://cloud.githubusercontent.com/assets/11940172/11791210/f97b6bd8-a2da-11e5-9083-b131fa796373.gif\" alt=\"confetti\" width=\"473.6\" height=\"198\"\u003e\n\u003c/p\u003e\n\nIt's raining confetti! SAConfettiView is the easiest way to add fun, multi-colored confetti to your application and make users feel rewarded. Written in Swift, SAConfettiView is a subclass of UIView and is highly customizable. From various types and colors of confetti to different levels of intensity, you can make the confetti as fancy as you want.\n\n## Installation\n\nSAConfettiView is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```swift\npod \"SAConfettiView\"\n```\n\nAnd then run:\n\n`$ pod install`\n\n#### Manual Installation\nTo manually install SAConfettiView, simply add `SAConfettiView.swift` to your project.\n\n## Usage\n\nCreating a SAConfettiView is the same as creating a UIView:\n\n```swift\nlet confettiView = SAConfettiView(frame: self.view.bounds)\n```\n\nDon't forget to add the subview!\n\n```swift\nself.view.addSubview(confettiView)\n```\n\n### Types\n\nPick one of the preconfigured types of confetti with the `.type` property, or create your own by providing a custom image. This property defaults to the `.Confetti` type.\n\n##### `.Confetti`\n\n![confetti](https://cloud.githubusercontent.com/assets/11940172/11819440/c9db329e-a39a-11e5-9284-b0171bee0f24.gif)\n\n```swift\nconfettiView.type = .Confetti\n```\n\n##### `.Triangle`\n\n![triangle](https://cloud.githubusercontent.com/assets/11940172/11819211/9b8b758a-a399-11e5-8ed3-2eb92f633628.gif)\n\n```swift\nconfettiView.type = .Triangle\n```\n\n##### `.Star`\n\n![star](https://cloud.githubusercontent.com/assets/11940172/11819401/90a2188a-a39a-11e5-8a03-ddca3fb52e72.gif)\n\n```swift\nconfettiView.type = .Star\n```\n\n##### `.Diamond`\n\n![diamond](https://cloud.githubusercontent.com/assets/11940172/11819275/f1c83c08-a399-11e5-8d40-85e9a1879526.gif)\n\n```swift\nconfettiView.type = .Diamond\n```\n\n##### `.Image`\n\n![image](https://cloud.githubusercontent.com/assets/11940172/11819363/5f4f0dba-a39a-11e5-826b-d198113f50dd.gif)\n\n```swift\nconfettiView.type = .Image(UIImage(named: \"smiley\"))\n```\n\n### Colors\n\nSet the colors of the confetti with the `.colors` property. This property has a default value of multiple colors. \n\n``` swift\nconfettiView.colors = [UIColor.redColor(), UIColor.greenColor(), UIColor.blueColor()]\n```\n\n### Intensity\n\nThe intensity refers to how many particles are generated and how quickly they fall. Set the intensity of the confetti with the `.intensity` property by passing in a value between 0 and 1. The default intensity is 0.5.\n\n``` swift\nconfettiView.intensity = 0.75\n```\n\n### Starting\n\nTo start the confetti, use\n\n``` swift\nconfettiView.startConfetti()\n```\n\n### Stopping\n\nTo stop the confetti, use\n\n``` swift\nconfettiView.stopConfetti()\n```\n\n### Status\n\nTo check if the confetti is active and currently being displayed, use\n\n``` swift\nconfettiView.isActive()\n```\n\nReturns `true` if it is being displayed, and `false` if it is not.\n\n## Change Log\n\n### 1.0.8\n* Add `isActive()` method to determine if the confetti is currently active\n  [Shakarang](https://github.com/Shakarang)\n  [#9](https://github.com/sudeepag/SAConfettiView/issues/9)\n\n### 1.0.7\n* Use view's `width` property instead of `center` to fix bug in UIScrollView\n  [debug29](https://github.com/debug29)\n  [#4](https://github.com/sudeepag/SAConfettiView/issues/4)\n\n### 1.0.6\n* Prevent error when calling `.stopConfetti()` before `.startConfetti()`\n  [ahmads](https://github.com/ahmads)\n  [#7](https://github.com/sudeepag/SAConfettiView/pull/7)\n\n### 1.0.5\n* Add Storyboard support\n  [SlaunchaMan](https://github.com/SlaunchaMan)\n  [#1](https://github.com/sudeepag/SAConfettiView/pull/1)\n\n### 1.0.4\n* Replace `.Custom` with `.Image(UIImage)` for easier customization of confetti image\n  [gmertk](https://github.com/gmertk)\n  [#2](https://github.com/sudeepag/SAConfettiView/pull/2)\n\n## License\n\nCopyright (c) 2015 Sudeep Agarwal\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsudeepag%2FSAConfettiView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsudeepag%2FSAConfettiView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsudeepag%2FSAConfettiView/lists"}