{"id":2493,"url":"https://github.com/Yu-w/WYMaterialButton","last_synced_at":"2025-08-03T00:31:51.202Z","repository":{"id":56927151,"uuid":"43094340","full_name":"Yu-w/WYMaterialButton","owner":"Yu-w","description":"Interactive and fully animated Material Design button for iOS developers.","archived":false,"fork":false,"pushed_at":"2017-05-21T17:52:16.000Z","size":2870,"stargazers_count":76,"open_issues_count":3,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-01T03:42:03.309Z","etag":null,"topics":["button","component","ios","library","material-design","swift"],"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/Yu-w.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-09-24T21:35:16.000Z","updated_at":"2024-05-10T22:47:55.000Z","dependencies_parsed_at":"2022-08-20T23:30:37.929Z","dependency_job_id":null,"html_url":"https://github.com/Yu-w/WYMaterialButton","commit_stats":null,"previous_names":["yuwang17/wymaterialbutton"],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yu-w%2FWYMaterialButton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yu-w%2FWYMaterialButton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yu-w%2FWYMaterialButton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yu-w%2FWYMaterialButton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Yu-w","download_url":"https://codeload.github.com/Yu-w/WYMaterialButton/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":["button","component","ios","library","material-design","swift"],"created_at":"2024-01-05T20:16:15.100Z","updated_at":"2024-12-06T18:30:31.827Z","avatar_url":"https://github.com/Yu-w.png","language":"Objective-C++","funding_links":[],"categories":["UI","iOS"],"sub_categories":["Button","Components","Other free courses"],"readme":"# WYMaterialButton\n\n[![Version](https://img.shields.io/cocoapods/v/WYMaterialButton.svg?style=flat)](http://cocoapods.org/pods/WYMaterialButton)\n[![License](https://img.shields.io/cocoapods/l/WYMaterialButton.svg?style=flat)](http://cocoapods.org/pods/WYMaterialButton)\n[![Platform](https://img.shields.io/cocoapods/p/WYMaterialButton.svg?style=flat)](http://cocoapods.org/pods/WYMaterialButton)\n\n#### Inspired by Google Material Design, written purely in Swift 3. \n\nWYMaterialButton implemented Material Design on iOS and add more dynamic motions, allowing iOS buttons to be more responsive and interactive.\n\nIntegrated with [Spring](https://github.com/MengTo/Spring) animations and enhanced by Facebook's [POP](https://github.com/facebook/pop), WYMaterialButton is super animated and programmer-friendly. All settings can be customized in storyboard inspector.\n\n\n\u003cimg src=\"./Screenshot/animation_pop.gif\" width=\"458\" height=\"323\"/\u003e\n\n## Installation\n\n#### WYMaterialButton is available through [CocoaPods](http://cocoapods.org).\n\nTo install via CocoaPods add this lines to your Podfile\n\n```ruby\nuse_frameworks!\npod \"WYMaterialButton\"\n```\nNote: Due to [CocoaPods/CocoaPods#4420 issue](https://github.com/CocoaPods/CocoaPods/issues/4420) there is problem with compiling project with Xcode 7.1 and **CocoaPods v0.39.0**. However there is a temporary workaround for this:\nAdd next lines to the end of your Podfile\n```ruby\npost_install do |installer|\n    `find Pods -regex 'Pods/pop.*\\\\.h' -print0 | xargs -0 sed -i '' 's/\\\\(\u003c\\\\)pop\\\\/\\\\(.*\\\\)\\\\(\u003e\\\\)/\\\\\"\\\\2\\\\\"/'`\nend\n```\n\n#### Or download the git repository\n```fish\ngit clone https://github.com/yuwang17/WYMaterialButton.git\n```\n\nDrag ``WYMaterialButton`` related files into your own project, and install facebook's [POP](https://github.com/facebook/pop) via cocoapods\n\nThen import the module in your file\n```swift\nimport WYMaterialButton\n```\n\nIf you're Objective-C user, please include the header file\n```swift\n#import \"WYMaterialButton-Swift.h\"\n```\n\n## Usage\n1) Add a ``UIButton`` in the Storyboard of your project.\n\n2) Subclass the UIbutton as ``WYMaterialButton`` in identity inspector.\n\n3) Select a color as ``Material Color``, the first row in attribute inspector, and let WYMaterialButton do everything else for you. You can also do other setting as well for further customizations.\n![](./Screenshot/instruction.png)\n\nc\n## Specification\n* For most cases, ``Material Color`` is the only property you need to set. Leave others as default.\n\n* ``Pulse Enable`` enable defautly, which control the bounce effect.\n\n* With ``Touch Location Enable`` enabled defautly, WYMaterialButton tracks your touch location and generate a ripple animation upon that. You can disable to always center the ripple effect on the button.\n\n* ``Material Effect Percent`` speicifies the percentage of area of the button will have material effect when being pressed. Default to ``0.8``.\n\n* You can of course access all these properties and more by using codes. For example:\n  ```swift\n  myButton.materialColor = .blue\n  ```\n\n\n## Demo\n1) Download the repository\n```fish\ngit clone https://github.com/yuwang17/WYMaterialButton.git\ncd WYMaterialButton/Example\n```\n\n2) Open the workspace\n```fish\nopen WYMaterialButton.xcworkspace\n```\n\n3) Compile and run the app in simulator\n* Under Xcode, press ``Ctrl + R``\n\n## Supported OS \u0026 SDK Versions\n* Xcode 7\n* iOS 7\n\n## Credits\n[Spring](https://github.com/MengTo/Spring): subclass [@Mengto](https://twitter.com/MengTo)'s Spring framework for supporting additional animations and quick settings in the button.\n\n[POP](https://github.com/facebook/pop): Facebook's animation framework for simulating the bounce effect.\n\n[Material Design](https://www.google.com/design/spec/material-design/introduction.html): animation idea and effects come from Google's material design concept.\n\n## License\nWYMaterialButton is available under the [MIT License](LICENSE), see LICENSE for more infomation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FYu-w%2FWYMaterialButton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FYu-w%2FWYMaterialButton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FYu-w%2FWYMaterialButton/lists"}