Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maustinstar/shiny
Shiny uses your gyroscope to simulate lighting and motion effects on colors. Works on almost every SwiftUI View.
https://github.com/maustinstar/shiny
gyroscope ios motion neumorphic skeuomorphic swift swift-package-manager swiftui ui ux
Last synced: 28 days ago
JSON representation
Shiny uses your gyroscope to simulate lighting and motion effects on colors. Works on almost every SwiftUI View.
- Host: GitHub
- URL: https://github.com/maustinstar/shiny
- Owner: maustinstar
- License: mit
- Created: 2020-07-31T03:44:10.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-07-12T00:24:15.000Z (4 months ago)
- Last Synced: 2024-09-30T18:03:49.180Z (about 1 month ago)
- Topics: gyroscope, ios, motion, neumorphic, skeuomorphic, swift, swift-package-manager, swiftui, ui, ux
- Language: Swift
- Homepage:
- Size: 2.14 MB
- Stars: 953
- Watchers: 12
- Forks: 20
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-swiftui-libraries - shiny - Shiny uses your gyroscope to simulate lighting and motion effects on colors. Works on almost every SwiftUI View (Animation / Content)
README
# Shiny
#### Add motion-based texture to your SwiftUI views
Draw attention to important interface elements with `.shiny()`. Shiny uses your gyroscope to simulate lighting and motion effects on colors. It works on almost every native SwiftUI View. Try it on Text, Toggle, or a VStack. Just add `.shiny()` to get started!
#### 💳 Inspired by the Apple Cash Card
## Contents
- [Add the Package](#package)
- [Basic Usage](#basic-usage)
- [Example](#example)
- [More](#more)
- [Credits](#credits)## Package
### For Xcode Projects
File > Swift Packages > Add Package Dependency: https://github.com/maustinstar/shiny
### For Swift Packages
Add a dependency in your your `Package.swift`
```swift
.package(url: "https://github.com/maustinstar/shiny.git", from: "0.0.1"),
```## Basic Usage
Just import Shiny and modify your view with `.shiny()` to get started.
```swift
import Shiny
...
Text("Hello, shiny world! ✨").shiny()
```**See the full [Reference Guide](https://github.com/maustinstar/shiny/blob/master/Docs/reference.md).**
## Example
#### Rainbow text on silver card
```swift
Text("shiny")
.font(.largeTitle)
.fontWeight(.bold).shiny()
.background(
RoundedRectangle(cornerRadius: 14.0)
.frame(width: 200.0, height: 70.0)
.shiny(.hyperGlossy(UIColor.systemGray5)))
```**See more [Examples](https://github.com/maustinstar/shiny/blob/master/Docs/examples.md).**
## More
### 🚀 Looking for more fun SwiftUI Packages?
## Credits
* [**Michael Verges**](https://github.com/maustinstar) - *Initial work* - [email protected] - [![Follow on Linkedin](https://img.shields.io/badge/Follow%20on-Linkedin-5176B1.svg)](https://www.linkedin.com/in/michaelverges)