Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

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)