{"id":28762320,"url":"https://github.com/inaka/fadebutton","last_synced_at":"2025-08-28T17:12:10.551Z","repository":{"id":18618478,"uuid":"21824111","full_name":"inaka/FadeButton","owner":"inaka","description":"Fading effects for UIButtons made simple","archived":false,"fork":false,"pushed_at":"2020-04-09T09:30:23.000Z","size":428,"stargazers_count":15,"open_issues_count":4,"forks_count":5,"subscribers_count":46,"default_branch":"master","last_synced_at":"2025-08-23T11:39:40.200Z","etag":null,"topics":["fadebutton","fading-effects","ios","swift","uibutton"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/inaka.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":"2014-07-14T15:09:51.000Z","updated_at":"2024-05-24T17:56:09.000Z","dependencies_parsed_at":"2022-08-21T04:20:45.222Z","dependency_job_id":null,"html_url":"https://github.com/inaka/FadeButton","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/inaka/FadeButton","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inaka%2FFadeButton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inaka%2FFadeButton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inaka%2FFadeButton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inaka%2FFadeButton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inaka","download_url":"https://codeload.github.com/inaka/FadeButton/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inaka%2FFadeButton/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272526729,"owners_count":24949836,"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-08-28T02:00:10.768Z","response_time":74,"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":["fadebutton","fading-effects","ios","swift","uibutton"],"created_at":"2025-06-17T08:07:53.316Z","updated_at":"2025-08-28T17:12:10.506Z","avatar_url":"https://github.com/inaka.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nFadeButton\n============\n***Fading effects for UIButtons made simple***\n\n[![Build Status](https://api.travis-ci.org/inaka/FadeButton.svg)](https://travis-ci.org/inaka/FadeButton) [![Swift](https://img.shields.io/badge/Swift-3.0-orange.svg?style=flat)](https://swift.org/) [![Cocoapods](https://img.shields.io/cocoapods/v/FadeButton.svg)](https://cocoapods.org/pods/FadeButton) [![Twitter](https://img.shields.io/badge/twitter-@inaka-blue.svg?style=flat)](http://twitter.com/inaka)\n\n\nOverview\n--------\nThis is just a customizable `UIButton` subclass that provides fading effects that display upon touch:\n\n![Sample](https://raw.githubusercontent.com/inaka/FadeButton/master/Assets/V2/sample.gif)\n\n\u003e Effects occur when the user releases the button.\n\n\nUsage\n-----\n\n**1)** Go to interface builder, select your button, open the Identity Inspector tab, and set `FadeButton` as custom class.\n\n![Sample](https://raw.githubusercontent.com/inaka/FadeButton/master/Assets/V2/screenshot1.png)\n\n**2)** Check out the following attributes in the Attributes Inspector tab:\n\n![Sample](https://raw.githubusercontent.com/inaka/FadeButton/master/Assets/V2/screenshot2.png)\n\n- `fadeDuration` configures how long the fading effect will last.\n- Then, the properties `textColor`, `image` and `backgroundImage` (that can have different values set for each state config) will be affected by the fading effect when the transitions between the `.highlighted` state and the `.normal` state occur.\n  - For instance, if you set `textColor: .white for: .normal` state and `textColor: .yellow for: .highlighted` state, the user will see a fading text effect from yellow to white after releasing the button.\n\n\nSample Project\n-------\nThere's a sample project inside this repo that you can check out in order to have a deeper understanding of the usage of this library.\n\n## Setup\n\n- Via [cocoapods](http://cocoapods.org/), add this line to your `Podfile`:\n  - `pod 'FadeButton', '~\u003e 2.0'`\n- Otherwise, you can just drag and drop the `FadeButton.swift` file into your project, and keep it up to date by yourself.\n\n## Older Versions Support\n\n- As of its [2.0.0](https://github.com/inaka/FadeButton/releases/tag/2.0.0) release, this library works with [**Swift 3.0**](https://swift.org/blog/swift-3-0-released/)\n- If you look for older languages version support, you can check out the [1.0.0](https://github.com/inaka/FadeButton/releases/tag/1.0.0) release, that contains the old Objective-C version of the library, which is compatible with older Swift versions.\n\n## Contact Us\n\nFor **questions** or **general comments** regarding the use of this library, please use our public [hipchat room](http://inaka.net/hipchat).\n\nIf you find any **bug**, a **problem** while using this library, or have **suggestions** that can make it better, please [open an issue](https://github.com/inaka/FadeButton/issues/new) in this repo (or a pull request).\n\nYou can also check all of our open-source projects at [inaka.github.io](https://inaka.github.io).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finaka%2Ffadebutton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finaka%2Ffadebutton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finaka%2Ffadebutton/lists"}