{"id":19216316,"url":"https://github.com/huangrunhua/likeeffect","last_synced_at":"2025-04-10T18:42:13.651Z","repository":{"id":113636168,"uuid":"172335612","full_name":"HuangRunHua/LikeEffect","owner":"HuangRunHua","description":"制作一个简单的点赞效果","archived":false,"fork":false,"pushed_at":"2019-03-19T09:09:21.000Z","size":882,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-24T16:23:20.208Z","etag":null,"topics":["apple","clap","ios","likebutton","likeeffect","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/HuangRunHua.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-24T12:37:32.000Z","updated_at":"2023-08-21T07:45:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"fd9215af-9a8e-4c8d-b3ae-1c237e7be847","html_url":"https://github.com/HuangRunHua/LikeEffect","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HuangRunHua%2FLikeEffect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HuangRunHua%2FLikeEffect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HuangRunHua%2FLikeEffect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HuangRunHua%2FLikeEffect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HuangRunHua","download_url":"https://codeload.github.com/HuangRunHua/LikeEffect/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248271910,"owners_count":21075800,"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":["apple","clap","ios","likebutton","likeeffect","swift"],"created_at":"2024-11-09T14:16:39.280Z","updated_at":"2025-04-10T18:42:13.643Z","avatar_url":"https://github.com/HuangRunHua.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LikeEffect\n\nI worte this demo for learning, this demo is a clap animation can be used in many app.\n\n## Requirements\n- Xcode9 and later\n- iOS 12.1 and later\n- Swift4.0 and later\n\n## Demo\nlet's see what would happen when you run this simple project.\n![demo gif](https://github.com/HuangRunHua/LikeEffect/blob/master/ClapAnimation/ClapAnimation/demo/IMB_S6TJjc.gif)\n\n## Usage\nFirst you must develop your own clap button, and add the code in ViewController.swift\n\nThe following codes are the function when you touch the button.\n~~~swift\n@objc func likeButtonTapped(sender: UIButton) {\n        feedbackGenerator?.impactOccurred()\n        flag = !flag\n        if flag {\n            likeButton.setImage(UIImage(named: \"2\"), for: .normal)\n            playAnimation()\n            \n            /**\n             *设定一段时间以后停止发射粒子\n             */\n            DispatchQueue.main.asyncAfter(deadline: .now() + 0.25) { [weak self] in\n                self!.emitterLayer.removeFromSuperlayer()\n            }\n            \n        } else {\n            likeButton.setImage(UIImage(named: \"1\"), for: .normal)\n        }\n        \n        scaleLikeButton()\n    }\n~~~\n\n## More\nIf you want to know how it was built, you can see [make a simple clap demo](https://medium.com/@h76joker/制作一个点赞效果-d73077b34b5f) for reference\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuangrunhua%2Flikeeffect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuangrunhua%2Flikeeffect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuangrunhua%2Flikeeffect/lists"}