{"id":16684922,"url":"https://github.com/balestrapatrick/squishbutton","last_synced_at":"2025-07-27T05:35:24.306Z","repository":{"id":62455935,"uuid":"87650025","full_name":"BalestraPatrick/SquishButton","owner":"BalestraPatrick","description":"A button that squishes when pressed. As seen in the Clips app.","archived":false,"fork":false,"pushed_at":"2018-03-08T21:26:18.000Z","size":721,"stargazers_count":397,"open_issues_count":0,"forks_count":11,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-07-26T02:44:27.728Z","etag":null,"topics":["button","swift","uikit","xcode"],"latest_commit_sha":null,"homepage":null,"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/BalestraPatrick.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":"2017-04-08T17:03:28.000Z","updated_at":"2025-06-30T20:31:16.000Z","dependencies_parsed_at":"2022-11-02T00:17:04.245Z","dependency_job_id":null,"html_url":"https://github.com/BalestraPatrick/SquishButton","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/BalestraPatrick/SquishButton","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BalestraPatrick%2FSquishButton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BalestraPatrick%2FSquishButton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BalestraPatrick%2FSquishButton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BalestraPatrick%2FSquishButton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BalestraPatrick","download_url":"https://codeload.github.com/BalestraPatrick/SquishButton/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BalestraPatrick%2FSquishButton/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267306863,"owners_count":24067038,"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","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","swift","uikit","xcode"],"created_at":"2024-10-12T14:45:30.802Z","updated_at":"2025-07-27T05:35:24.274Z","avatar_url":"https://github.com/BalestraPatrick.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src=\"demo.gif\" width=\"650\" max-width=\"50%\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://travis-ci.org/BalestraPatrick/SquishButton\"\u003e\n        \u003cimg src=\"http://img.shields.io/travis/BalestraPatrick/SquishButton.svg?style=flat\" alt=\"CocoaPods\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://cocoapods.org/pods/SquishButton\"\u003e\n        \u003cimg src=\"https://img.shields.io/cocoapods/v/SquishButton.svg\" alt=\"CocoaPods\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/Carthage/Carthage\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/carthage-compatible-4BC51D.svg?style=flat\" alt=\"Carthage\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"http://cocoapods.org/pods/SquishButton\"\u003e\n        \u003cimg src=\"https://img.shields.io/cocoapods/l/SquishButton.svg?style=flat\" alt=\"License\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"http://cocoapods.org/pods/SquishButton\"\u003e\n        \u003cimg src=\"https://img.shields.io/cocoapods/p/SquishButton.svg?style=flat\" alt=\"Platform\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://twitter.com/BalestraPatrick\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/contact-@BalestraPatrick-yellow.svg?style=flat\" alt=\"Twitter: @BalestraPatrick\" /\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\nInspired by the new [Clips app](http://www.apple.com/lae/clips/) record button, `SquishButton` is a `UIButton` subclass that implements the same design and behavior.\n\n## Usage\nUse it as every other `UIButton` object and customize it to suit your needs. These are the public properties that `SquishButton` adds:\n\n```swift\n/// The number of pixels to scale the inner rectangle.\nopen var scaling = CGFloat(10)\n\n/// The duration of the animation when the button is in the highlighted state.\nopen var animationDuration = 0.15\n\n/// The color of the inner rectangle.\nopen var color = UIColor(red: 244.0/255.0, green: 51.0/255.0, blue: 50.0/255.0, alpha: 1.0)\n\n/// The inset between the outer border and inner rectangle.\nopen var innerInset = CGFloat(5)\n```\n\n## Requirements\niOS 8.3 and Swift 3.2.\n\nIf you are using Swift 4, please use the [swift4 branch](https://github.com/BalestraPatrick/SquishButton/tree/swift4).\n\n## Installation\n\nSquishButton is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'SquishButton'\n```\n\nYou can also use [Carthage](https://github.com/Carthage/Carthage) if you prefer. Add this line to your `Cartfile`.\n\n```ruby\ngithub \"BalestraPatrick/SquishButton\"\n```\n\n## Author\n\nI'm [Patrick Balestra](http://www.patrickbalestra.com).\nEmail: [me@patrickbalestra.com](mailto:me@patrickbalestra.com)\nTwitter: [@BalestraPatrick](http://twitter.com/BalestraPatrick).\n\n## License\n\n`SquishButton` is available under the MIT license. See the [LICENSE](LICENSE) file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbalestrapatrick%2Fsquishbutton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbalestrapatrick%2Fsquishbutton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbalestrapatrick%2Fsquishbutton/lists"}