{"id":17128976,"url":"https://github.com/pmusolino/pmsuperbutton","last_synced_at":"2025-04-12T23:29:17.471Z","repository":{"id":53540127,"uuid":"94108478","full_name":"pmusolino/PMSuperButton","owner":"pmusolino","description":"🔥 PMSuperButton is a powerful UIButton coming from the countryside, but with super powers! 😎","archived":false,"fork":false,"pushed_at":"2023-03-07T13:47:46.000Z","size":1375,"stargazers_count":726,"open_issues_count":8,"forks_count":43,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-04-04T02:08:49.017Z","etag":null,"topics":["animations","button","closure","customizable","interface-builder","storyboard","uibutton","uicontrol"],"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/pmusolino.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","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},"funding":{"custom":"https://www.paypal.me/pmusolino"}},"created_at":"2017-06-12T14:56:56.000Z","updated_at":"2025-03-25T02:39:09.000Z","dependencies_parsed_at":"2024-01-02T21:24:54.954Z","dependency_job_id":null,"html_url":"https://github.com/pmusolino/PMSuperButton","commit_stats":{"total_commits":84,"total_committers":4,"mean_commits":21.0,"dds":0.1071428571428571,"last_synced_commit":"b31843d1eb82e476fa4602624cbfad5405a07dfb"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmusolino%2FPMSuperButton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmusolino%2FPMSuperButton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmusolino%2FPMSuperButton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmusolino%2FPMSuperButton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pmusolino","download_url":"https://codeload.github.com/pmusolino/PMSuperButton/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248646892,"owners_count":21139079,"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":["animations","button","closure","customizable","interface-builder","storyboard","uibutton","uicontrol"],"created_at":"2024-10-14T19:08:32.717Z","updated_at":"2025-04-12T23:29:17.429Z","avatar_url":"https://github.com/pmusolino.png","language":"Swift","funding_links":["https://www.paypal.me/pmusolino"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/pmusolino/PMSuperButton/blob/master/docs/logo.png?raw=true\" alt=\"Icon\"/\u003e\n\u003c/p\u003e\n\n[![Language](https://img.shields.io/badge/Swift-4%20%26%205-orange.svg)]()\n[![GitHub license](https://img.shields.io/badge/License-MIT-lightgrey)](https://github.com/pmusolino/PMSuperButton/blob/master/LICENSE)\n[![Pod version](https://img.shields.io/badge/Cocoapods-Compatible%20-blue)](https://cocoapods.org/pods/PMSuperButton)\n[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-yellow.svg)](https://github.com/Carthage/Carthage)\n\nPMSuperButton is a powerful UIButton coming from the countryside, but with super powers! 😎\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/pmusolino/PMSuperButton/blob/master/docs/ripple_button.gif?raw=true\" alt=\"Icon\"/\u003e\n  \u003cbr\u003e\n  \u003cimg src=\"https://github.com/pmusolino/PMSuperButton/blob/master/docs/checkbox_button.gif?raw=true\" alt=\"Icon\"/\u003e\n  \u003cbr\u003e\n  \u003cimg src=\"https://github.com/pmusolino/PMSuperButton/blob/master/docs/loader_button.gif?raw=true\" alt=\"Icon\"/\u003e\n\u003c/p\u003e\n\n##### An easy way to create custom and complex buttons with custom attributes, directly added to the iOS Interface Builder, very easy to integrate into every project!\n\n\n## Top 100 Coolest Super Powers:\n- [x] Edit everything directly from storyboard or code 😏\n- [x] Change border color, width\n- [x] Customize the corner radius\n- [x] Set a gradient background\n- [x] Edit everything about the shadows: color, opacity, offset\n- [x] Animations when the button is highlighted 🤗\n- [x] Animations when the button is selected\n- [x] Ripple tap effect, where you can edit ripple color and ripple speed (like a Google Material button) 😮\n- [x] Toggle functionality\n- [x] Image View content mode and alpha\n- [x] Touch up inside closure 🤠\n- [x] Loader 🤜🤛\n- [x] Swift 3, 4 and Swift 5 support\n- [x] **and much more**\n\n## How it works\nThe library allows you to use all the features of standard UIButton with a lot of new cool features, customizable from Storyboard or from code.\n\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://github.com/pmusolino/PMSuperButton/blob/master/docs/interface_builder.png?raw=true\" width=500 alt=\"Icon\"/\u003e\n\u003c/p\u003e\n\nFirst of all, drag \u0026 drop a new UIButton inside your view controller in storyboard, then set the UIButton class to PMSuperButton:\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://github.com/pmusolino/PMSuperButton/blob/master/docs/configuration1.png?raw=true\" width=250 alt=\"Icon\"/\u003e\n\u003c/p\u003e\n\nThat's it! Now you are ready to customize your PMSuperButton from the `Attributes Inspector` of Interface Builder.\n\n##### How to use Touch Up Inside closure\nIBAction or addTarget() with #selector? No thanks, we have a closure for this:\n\n```\nmyButton.touchUpInside {\n\tprint(\"This button was pressed!\")\n}\n```\n\n##### How to show the loader indicator\n```\n//Pass `false` to disable user interaction while loading is showed\nmyButton.showLoader(userInteraction: true)\n\n//Hide loader\nmyButton.hideLoader()\n```\n\n## Requirements\n\n- iOS 8.0+\n- Xcode 10+\n\n## CocoaPods\n\n[CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects. You can install it with the following command:\n\n```bash\n$ gem install cocoapods\n```\n\nTo integrate PMSuperButton into your Xcode project using CocoaPods, specify it in your `Podfile`:\n\n\n```ruby\nsource 'https://github.com/CocoaPods/Specs.git'\nplatform :ios, '8.0'\nuse_frameworks!\n\npod 'PMSuperButton'\n```\n\nThen, run the following command:\n\n```bash\n$ pod install\n```\n## Carthage\n----------------\n\n[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.\n\nYou can install Carthage with [Homebrew](http://brew.sh/) using the following command:\n\n```bash\n$ brew update\n$ brew install carthage\n```\n\nTo integrate PMSuperButton into your Xcode project using Carthage, specify it in your `Cartfile`:\n\n```ogdl\ngithub \"pmusolino/PMSuperButton\"\n```\n\nRun `carthage update` to build the framework and drag the built `PMSuperButton.framework` into your Xcode project.\n\n## Manually\n\n1. Download and drop ```/Sources``` folder in your project.  \n2. Congratulations!  \n\n## Swift compatibility\n- If you use Swift 5 or higher, you can use the [latest release](https://github.com/pmusolino/PMSuperButton/releases).\n\n- If you use Swift 4, you can use the [release 2.2.0](https://github.com/pmusolino/PMSuperButton/releases/tag/2.2.0).\n\n- If you use Swift 3, you can use the [release 1.0.0](https://github.com/pmusolino/PMSuperButton/releases/tag/1.0.0).\n\n## Contributing\n\n- If you **need help** or you'd like to **ask a general question**, open an issue.\n- If you **found a bug**, open an issue.\n- If you **have a feature request**, open an issue.\n- If you **want to contribute**, submit a pull request.\n\n## Acknowledgements\n\n**Made with ❤️ by [Paolo Musolino](https://github.com/pmusolino).**\n\n***Follow me on:***\n#### 💼 [Linkedin](https://www.linkedin.com/in/paolomusolino/)\n\n#### 🤖 [Twitter](https://twitter.com/pmusolino)\n\n#### 🌇 [Instagram](https://www.instagram.com/pmusolino/)\n\n#### 👨🏼‍🎤 [Facebook](https://www.facebook.com/paolomusolino)\n\n## MIT License\n\nPMSuperButton is available under the MIT license. See the LICENSE file for more info.\n\nMade with ❤️ by [Paolo Musolino](https://github.com/pmusolino).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmusolino%2Fpmsuperbutton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpmusolino%2Fpmsuperbutton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmusolino%2Fpmsuperbutton/lists"}