MIT License

项目介绍

efremidze/Shiny 是一个托管在 GitHub 上的开源项目,主要使用 Swift 编写,采用 MIT License 许可证,目前获得 846 个 Star、43 次 Fork。

仓库全名
efremidze/Shiny
开源许可证
MIT License
Star 数
846
Fork 数
43
未关闭 Issue
3

README 摘要

Shiny 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. Requirements iOS 9.0+ Swift 5 (Shiny 2.x), Swift 4 (Shiny 1.x) Usage Adding ShinyView programmatically (supports storyboard/xib too): You must call startUpdates() for the instance to observe motion changes. Calling stopUpdates() on the instance will stop motion…

完整内容见 GitHub 原始 README 或本页 。

常见问题

Shiny 用什么语言开发?

主要使用 Swift 编写,采用 MIT License 许可证,目前有 846 个 Star。

Shiny 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 Shiny 的源码?

可以直接克隆仓库:git clone https://github.com/efremidze/Shiny.git,默认分支为 master;安装与运行步骤见仓库 README。

Shiny 最近还在维护吗?

仓库最近一次更新为 2025年7月10日,当前有 3 个未关闭 Issue;Star 数为 846,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

Iridescent Effect View (inspired by Apple Pay Cash) ✨

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
949
价值分
522
活跃状态
活跃

语言占比

Objective-C
Ruby
Swift

Release

贡献者

README

Shiny

CI CocoaPods Carthage SPM Swift License

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.

Apple Pay
$ pod try Shiny

Requirements

  • iOS 9.0+
  • Swift 5 (Shiny 2.x), Swift 4 (Shiny 1.x)

Usage

Adding ShinyView programmatically (supports storyboard/xib too):

import Shiny

let shinyView = ShinyView(frame: CGRect(x: 0, y: 0, width: 320, height: 200))
shinyView.colors = [.gray, .red, .green, .blue, .gray]
shinyView.startUpdates() // necessary
view.addSubview(shinyView)

You must call startUpdates() for the instance to observe motion changes. Calling stopUpdates() on the instance will stop motion updates.

func startUpdates() // Starts listening to motion updates.
func stopUpdates() // Stops listening to motion updates.

Customization

The ShinyView exposes several properties to customize the radial gradient used to create the shiny effect:

var colors: [UIColor] // The color of each gradient stop.
var locations: [CGFloat]? // The location of each gradient stop. The default is `nil`.
var scale: CGFloat // The scale factor of the gradient. The default is `2.0`.

Installation

Shiny is available via CocoaPods and Carthage.

CocoaPods

To install with CocoaPods, simply add this in your Podfile:

use_frameworks!
pod "Shiny"

Carthage

To install with Carthage, simply add this in your Cartfile:

github "efremidze/Shiny"

Mentions

Communication

  • If you found a bug, open an issue.
  • If you have a feature request, open an issue.
  • If you want to contribute, submit a pull request.

Apps Using Shiny

Feel free to submit a PR if you’re using this library in your apps.

License

Shiny is available under the MIT license. See the LICENSE file for more info.

评论

暂无评论