{"id":13769440,"url":"https://github.com/BalestraPatrick/SquishButton","last_synced_at":"2025-05-11T02:32:36.289Z","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":398,"open_issues_count":0,"forks_count":11,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-09T11:12:50.359Z","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-03-25T18:20:13.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,"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","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253487800,"owners_count":21916157,"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","swift","uikit","xcode"],"created_at":"2024-08-03T17:00:25.245Z","updated_at":"2025-05-11T02:32:35.987Z","avatar_url":"https://github.com/BalestraPatrick.png","language":"Swift","funding_links":[],"categories":["Button","Swift"],"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"}