{"id":14961279,"url":"https://github.com/efremidze/shiny","last_synced_at":"2025-04-04T07:08:42.468Z","repository":{"id":49894849,"uuid":"113637739","full_name":"efremidze/Shiny","owner":"efremidze","description":"Iridescent Effect View (inspired by Apple Pay Cash) ✨","archived":false,"fork":false,"pushed_at":"2023-11-20T08:16:51.000Z","size":1310,"stargazers_count":815,"open_issues_count":3,"forks_count":41,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-04-04T07:08:37.488Z","etag":null,"topics":["animation","apple","apple-pay","carthage","cash","cocoapods","hologram","holographic","ios","motion","pay","shiny","swift"],"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/efremidze.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-12-09T03:14:14.000Z","updated_at":"2025-04-01T03:29:42.000Z","dependencies_parsed_at":"2024-01-18T03:46:53.862Z","dependency_job_id":null,"html_url":"https://github.com/efremidze/Shiny","commit_stats":{"total_commits":64,"total_committers":1,"mean_commits":64.0,"dds":0.0,"last_synced_commit":"31a47024f9922e884eca730518aa2bcc91f19857"},"previous_names":["efremidze/holographic"],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efremidze%2FShiny","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efremidze%2FShiny/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efremidze%2FShiny/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efremidze%2FShiny/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/efremidze","download_url":"https://codeload.github.com/efremidze/Shiny/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247135144,"owners_count":20889421,"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":["animation","apple","apple-pay","carthage","cash","cocoapods","hologram","holographic","ios","motion","pay","shiny","swift"],"created_at":"2024-09-24T13:24:21.667Z","updated_at":"2025-04-04T07:08:42.450Z","avatar_url":"https://github.com/efremidze.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shiny\n\n[![Build Status](https://travis-ci.org/efremidze/Shiny.svg?branch=master)](https://travis-ci.org/efremidze/Shiny)\n[![Language](https://img.shields.io/badge/Swift-5-orange.svg?style=flat)](https://swift.org)\n[![Version](https://img.shields.io/cocoapods/v/Shiny.svg?style=flat)](http://cocoapods.org/pods/Shiny)\n[![License](https://img.shields.io/cocoapods/l/Shiny.svg?style=flat)](http://cocoapods.org/pods/Shiny)\n[![Platform](https://img.shields.io/cocoapods/p/Shiny.svg?style=flat)](http://cocoapods.org/pods/Shiny)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n\n**Shiny** is an iOS library that generates an iridescent effect view matched to the gyroscope, similar to the Apple Pay Cash card in the Wallet app.\n\n\u003cimg src=\"https://raw.githubusercontent.com/efremidze/Shiny/master/Images/applepay.png\" width=\"318\" alt=\"Apple Pay\" /\u003e\n\u003cimg src=\"https://thumbs.gfycat.com/NewGrotesqueKitten-size_restricted.gif\" width=\"320\"\u003e\n\n```\n$ pod try Shiny\n```\n\n## Requirements\n\n- iOS 9.0+\n- Xcode 9.0+\n- Swift 5 (Shiny 2.x), Swift 4 (Shiny 1.x)\n\n## Usage\n\nAdding `ShinyView` programmatically (supports storyboard/xib too):\n\n```swift\nimport Shiny\n\nlet shinyView = ShinyView(frame: CGRect(x: 0, y: 0, width: 320, height: 200))\nshinyView.colors = [.gray, .red, .green, .blue, .gray]\nshinyView.startUpdates() // necessary\nview.addSubview(shinyView)\n```\n\nYou must call `startUpdates()` for the instance to observe motion changes. Calling `stopUpdates()` on the instance will stop motion updates.\n\n```swift\nfunc startUpdates() // Starts listening to motion updates.\nfunc stopUpdates() // Stops listening to motion updates.\n```\n\n### Customization\n\nThe `ShinyView` exposes several properties to customize the radial gradient used to create the shiny effect:\n\n```swift\nvar colors: [UIColor] // The color of each gradient stop.\nvar locations: [CGFloat]? // The location of each gradient stop. The default is `nil`.\nvar scale: CGFloat // The scale factor of the gradient. The default is `2.0`.\n```\n\n## Installation\n\nShiny is available via CocoaPods and Carthage.\n\n### CocoaPods\nTo install with [CocoaPods](http://cocoapods.org/), simply add this in your `Podfile`:\n```ruby\nuse_frameworks!\npod \"Shiny\"\n```\n\n### Carthage\nTo install with [Carthage](https://github.com/Carthage/Carthage), simply add this in your `Cartfile`:\n```ruby\ngithub \"efremidze/Shiny\"\n```\n\n## Mentions\n\n- [iOS Dev Weekly 332](http://iosdevweekly.com/issues/332#start)\n\n## Communication\n\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## Apps Using _Shiny_\n\nFeel free to submit a PR if you’re using this library in your apps.\n\n## License\n\nShiny is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fefremidze%2Fshiny","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fefremidze%2Fshiny","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fefremidze%2Fshiny/lists"}