{"id":2486,"url":"https://github.com/marmelroy/TVButton","last_synced_at":"2025-08-03T00:31:50.522Z","repository":{"id":62457058,"uuid":"45758909","full_name":"marmelroy/TVButton","owner":"marmelroy","description":"Recreating the cool parallax icons from Apple TV as iOS UIButtons (in Swift).","archived":false,"fork":false,"pushed_at":"2019-03-02T01:56:34.000Z","size":3325,"stargazers_count":1157,"open_issues_count":7,"forks_count":51,"subscribers_count":24,"default_branch":"master","last_synced_at":"2024-11-29T08:58:44.695Z","etag":null,"topics":[],"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/marmelroy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-11-07T23:20:29.000Z","updated_at":"2024-06-02T17:35:26.000Z","dependencies_parsed_at":"2022-11-02T00:15:22.801Z","dependency_job_id":null,"html_url":"https://github.com/marmelroy/TVButton","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marmelroy%2FTVButton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marmelroy%2FTVButton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marmelroy%2FTVButton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marmelroy%2FTVButton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marmelroy","download_url":"https://codeload.github.com/marmelroy/TVButton/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228034827,"owners_count":17859222,"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":[],"created_at":"2024-01-05T20:16:14.932Z","updated_at":"2024-12-06T18:30:30.094Z","avatar_url":"https://github.com/marmelroy.png","language":"Swift","funding_links":[],"categories":["UI","Swift","Libs","Content"],"sub_categories":["Button","Other free courses","UI"],"readme":"![TVButton - Apple TV Parallax icons on iOS](https://cloud.githubusercontent.com/assets/889949/11056798/b0b54632-8785-11e5-8ef2-af9c579815f9.png)\n\n[![Build Status](https://travis-ci.org/marmelroy/TVButton.svg?branch=master)](https://travis-ci.org/marmelroy/TVButton) [![Version](http://img.shields.io/cocoapods/v/TVButton.svg)](http://cocoapods.org/?q=TVButton)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n\n# TVButton\nRecreating the cool parallax icons from Apple TV as iOS UIButtons (in Swift). The effect is triggered by long pressing or dragging.\n\n![Star Wars TVButton](http://i.giphy.com/xTiTnCqL5arYHW92Lu.gif)\n\n## Usage\n\nImport TVButton at the top of your Swift ViewController.\n\n```swift\nimport TVButton\n```\n\nCreate and position your TVButton in interface builder or in code.\n\nFor the parallax TVButton you will need at least two layers of images (three recommended). For best results, the button and the images should all have the same dimensions. Assign the relevant UIImages to TVButtonLayers and provide them as a layers array to the TVButton.\n```swift\nlet background = TVButtonLayer(image: UIImage(named: \"TVButtonBackground.png\")!)\nlet pattern = TVButtonLayer(image: UIImage(named: \"TVButtonPattern.png\")!)\nlet top = TVButtonLayer(image: UIImage(named: \"TVButtonTop.png\")!)\ntvButton.layers = [background, pattern, top]\n```\n\nYou can customize the parallax intensity of your TVButton. Default value is 1.0 and it's very subtle. Maximum recommended value is 2.0.\n```swift\ntvButton.parallaxIntensity = 1.3\n```\n\n![TVButton in action](http://i.giphy.com/l0O9zc8b49oDi209y.gif)\n\nEnjoy!\n\n### Setting up with [CocoaPods](http://cocoapods.org/?q=TVButton)\n```ruby\nsource 'https://github.com/CocoaPods/Specs.git'\npod 'TVButton', '~\u003e 1.0'\n```\n\n### Setting up with Carthage\n\n[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that automates the process of adding frameworks to your Cocoa application.\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 TVButton into your Xcode project using Carthage, specify it in your `Cartfile`:\n\n```ogdl\ngithub \"marmelroy/TVButton\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarmelroy%2FTVButton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarmelroy%2FTVButton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarmelroy%2FTVButton/lists"}