{"id":2496,"url":"https://github.com/imwcl/WCLShineButton","last_synced_at":"2025-08-03T00:31:55.035Z","repository":{"id":41044945,"uuid":"82036170","full_name":"imwcl/WCLShineButton","owner":"imwcl","description":"This is a UI lib for iOS. Effects like shining.","archived":false,"fork":false,"pushed_at":"2020-05-29T09:38:17.000Z","size":940,"stargazers_count":1388,"open_issues_count":5,"forks_count":131,"subscribers_count":19,"default_branch":"master","last_synced_at":"2024-11-30T00:47:57.499Z","etag":null,"topics":["animation","effects","ios-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/imwcl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-15T08:12:30.000Z","updated_at":"2024-11-07T01:22:02.000Z","dependencies_parsed_at":"2022-08-21T04:20:47.776Z","dependency_job_id":null,"html_url":"https://github.com/imwcl/WCLShineButton","commit_stats":null,"previous_names":["631106979/wclshinebutton"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imwcl%2FWCLShineButton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imwcl%2FWCLShineButton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imwcl%2FWCLShineButton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imwcl%2FWCLShineButton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imwcl","download_url":"https://codeload.github.com/imwcl/WCLShineButton/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228510718,"owners_count":17931755,"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","effects","ios-swift"],"created_at":"2024-01-05T20:16:15.180Z","updated_at":"2024-12-06T18:30:31.728Z","avatar_url":"https://github.com/imwcl.png","language":"Swift","funding_links":[],"categories":["UI","Content"],"sub_categories":["Button","Other free courses"],"readme":"# WCLShineButton\n\n[![Version](https://img.shields.io/cocoapods/v/WCLShineButton.svg?style=flat)](http://cocoapods.org/pods/WCLShineButton)\n[![License](https://img.shields.io/cocoapods/l/WCLShineButton.svg?style=flat)](http://cocoapods.org/pods/WCLShineButton)\n[![Platform](https://img.shields.io/cocoapods/p/WCLShineButton.svg?style=flat)](http://cocoapods.org/pods/WCLShineButton)\n[![Support](https://img.shields.io/badge/support-iOS%208%2B%20-blue.svg?style=flat)](https://www.apple.com/nl/ios/) \n![Language](https://img.shields.io/badge/Language-%20swift%20%20-blue.svg)\n\nThis is a UI lib for iOS. Effects like shining. \n\n![](DemoGif.gif)\n\n#### ![](https://raw.githubusercontent.com/gosquared/flags/master/flags/flags/shiny/24/China.png) **Chinese (Simplified)**: \n#### [中文说明](README.zh.md)\n#### [博客介绍](http://blog.csdn.net/wang631106979/article/details/55230455)\n\n## **CocoaPods**\n\nCocoaPods is the recommended way to add `WCLShineButton` to your project.\n\nAdd a pod entry for `WCLShineButton` to your Podfile.\n\n```ruby\npod 'WCLShineButton'\n```\n\nSecond, install `WCLShineButton` into your project:\n\n```bash\npod install\n```\n\nInclude WCLShineButton wherever you need it with `import WCLShineButton`.\n\n## Carthage\n\n[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. To integrate `WCLShineButton` into your Xcode project using Carthage, specify it in your `Cartfile`:\n\n```\ngithub \"imwcl/WCLShineButton\"\n```\n\nRun `carthage update` to build the framework and drag the built `WCLShineButton.framework` (in Carthage/Build/iOS folder) into your Xcode project (Linked Frameworks and Libraries in `Targets`).\n\n## Usage\n\n```swift\nvar param1 = WCLShineParams()\nparam1.bigShineColor = UIColor(rgb: (153,152,38))\nparam1.smallShineColor = UIColor(rgb: (102,102,102))\nlet bt1 = WCLShineButton(frame: .init(x: 100, y: 100, width: 60, height: 60), params: param1)\nbt1.fillColor = UIColor(rgb: (153,152,38))\nbt1.color = UIColor(rgb: (170,170,170))\nbt1.addTarget(self, action: #selector(action), for: .valueChanged)\nview.addSubview(bt1)\n```\n\n## **Complex Usage**\n\n| **Property**            | **Description**                          |\n| ----------------------- | ---------------------------------------- |\n| `color`                 | Default button color                     |\n| `fillColor`             | Fill button color                        |\n| `allowRandomColor`      | Allow shine color random                 |\n| `animDuration`          | shine anim duration                      |\n| `bigShineColor`         | big shine color                          |\n| `enableFlashing`        | Enable effect like flash                 |\n| `shineCount`            | shine count around button                |\n| `shineTurnAngle`        | turn angle of shine                      |\n| `shineDistanceMultiple` | multiple of distance to button           |\n| `smallShineOffsetAngle` | angle offset of small shine to big shine |\n| `smallShineColor`       | small shine color                        |\n| `shineSize`             | size of shine by pixel                   |\n| `colorRandom`           | shine color random                       |\n| `image`                 | button image (png)                       |\n\n## **Contacts**\n\n**[blog](http:blog.imwcl.com)**\n\n**[CSDN](http://blog.csdn.net/wang631106979)**\n\n## Code Reference\n\n[ShineButton](https://github.com/ChadCSong/ShineButton)\n\n## **License**\n\nWCLShineButton is released under the [MIT license](https://github.com/631106979/WCLShineButton/blob/master/LICENSE). See LICENSE for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimwcl%2FWCLShineButton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimwcl%2FWCLShineButton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimwcl%2FWCLShineButton/lists"}