{"id":2310,"url":"https://github.com/shu223/PulsingHalo","last_synced_at":"2025-08-02T23:32:51.947Z","repository":{"id":12314867,"uuid":"14949479","full_name":"shu223/PulsingHalo","owner":"shu223","description":"iOS Component for creating a pulsing animation.","archived":false,"fork":false,"pushed_at":"2021-10-12T09:37:09.000Z","size":653,"stargazers_count":1769,"open_issues_count":13,"forks_count":240,"subscribers_count":52,"default_branch":"master","last_synced_at":"2024-11-29T13:06:25.529Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","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/shu223.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["shu223"],"custom":["https://paypal.me/shu223"]}},"created_at":"2013-12-05T09:38:23.000Z","updated_at":"2024-11-28T16:28:24.000Z","dependencies_parsed_at":"2022-08-08T04:00:04.858Z","dependency_job_id":null,"html_url":"https://github.com/shu223/PulsingHalo","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shu223%2FPulsingHalo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shu223%2FPulsingHalo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shu223%2FPulsingHalo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shu223%2FPulsingHalo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shu223","download_url":"https://codeload.github.com/shu223/PulsingHalo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228476053,"owners_count":17926133,"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.517Z","updated_at":"2024-12-06T17:30:58.127Z","avatar_url":"https://github.com/shu223.png","language":"Objective-C","funding_links":["https://github.com/sponsors/shu223","https://paypal.me/shu223"],"categories":["UI","Animation","Objective-C","Objective-C  Stars 1000以内排名整理","ALL"],"sub_categories":["Animation","Other free courses"],"readme":"PulsingHalo\n===========\n\n**PulsingHalo has been discontinued, and is no longer being maintained.** Please check out **[Pulsator](https://github.com/shu223/Pulsator)** which is the new version of this written with Swift.\n\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![Badge w/ Version](http://cocoapod-badges.herokuapp.com/v/PulsingHalo/badge.png)](http://cocoadocs.org/docsets/PulsingHalo)\n[![License](http://img.shields.io/badge/license-MIT-lightgrey.svg?style=flat\n)](http://mit-license.org)\n\niOS component for creating a pulsing animation. It allows you to create halos.\n\n![](demo_.gif)\n                    \nGreat For:\n\n- **Pulses of beacons (iBeacon)**\n- Map Annotations\n\n\n## Installation\n\n### CocoaPods\n\nAdd into your Podfile.\n\n```\npod \"PulsingHalo\"\n```\n\nThen `$ pod install`\n\n\n### Carthage\n\nAdd into your Cartfile.\n\n```\ngithub \"shu223/PulsingHalo\"\n```\n\nThen `$ carthage update`\n\n\n### Manual\n\nAdd PulsingHaloLayer.h,m into your project.\n\n## How to use\n\nJust **initiate and add** to your view layer.\n\n### Swift\n\n```swift\nlet halo = PulsingHaloLayer()\nhalo.position = view.center\nview.layer.addSublayer(halo)\nhalo.start()\n```\n\n### Objective-C\n\n```objc\nPulsingHaloLayer *halo = [PulsingHaloLayer layer];\nhalo.position = self.view.center;\n[self.view.layer addSublayer:halo];\n[halo start];\n```\n\n\n\n\n## Customizations\n\n### Number of Halos\n\nUse `haloLayerNumber` property.\n\n```objc\nhalo.haloLayerNumber = 3;\n```\n\n### radius\n\nUse `radius` property.\n\n```objc\nself.halo.radius = 240.0;\n```\n\n### color\n\nUse `backgroundColor` property.\n\n```objc\nUIColor *color = [UIColor colorWithRed:0.7\n                                 green:0.9\n                                  blue:0.3\n                                 alpha:1.0];\n\nself.halo.backgroundColor = color.CGColor;\n```\n\n### animation duration\n\nUse `animationDuration` or `pulseInterval` property.\n\n\n### animation repeat count\n\nInitialize using `initWithRepeatCount:` method, or set `repeatCount` property. The default value is `INFINITY`.\n\n\n### animation key values and times\n\nUse properties `fromValueForRadius` or `keyTimeForHalfOpacity`.\n\n### enable/disable timing function for animation\n\nUse property `useTimingFunction`\n\n## Demo\n\nYou can try to change the radius and color properties with demo app.\n\n\n## Special Thanks\n\nInspired by [SVPulsingAnnotationView](https://github.com/samvermette/SVPulsingAnnotationView).\n\n## Author\n\n**Shuichi Tsutsumi**\n\niOS freelancer in Japan. Welcome works from abroad!\n\n\u003ca href=\"https://paypal.me/shu223\"\u003e\n  \u003cimg alt=\"Support via PayPal\" src=\"https://cdn.rawgit.com/twolfson/paypal-github-button/1.0.0/dist/button.svg\"/\u003e\n\u003c/a\u003e\n\n- PAST WORKS:  [My Profile Summary](https://medium.com/@shu223/my-profile-summary-f14bfc1e7099#.vdh0i7clr)\n- PROFILES: [LinkedIn](https://www.linkedin.com/in/shuichi-tsutsumi-525b755b/)\n- BLOG: [English](https://medium.com/@shu223/) / [Japanese](http://d.hatena.ne.jp/shu223/)\n- CONTACTS:\n  - [Twitter](https://twitter.com/shu223)\n  - [Facebook](https://www.facebook.com/shuichi.tsutsumi)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshu223%2FPulsingHalo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshu223%2FPulsingHalo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshu223%2FPulsingHalo/lists"}