Swiftpack.co -  maustinstar/shiny as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
maustinstar/shiny
Shiny uses your gyroscope to simulate lighting and motion effects on colors. Works on almost every SwiftUI View.
.package(url: "https://github.com/maustinstar/shiny.git", from: "v0.0.1")

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

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

.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.

import Shiny
...
Text("Hello, shiny world! ✨").shiny()

See the full Reference Guide.

Example

Rainbow text on silver card

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.

More

🚀 Looking for more fun SwiftUI Packages?

Credits

GitHub

link
Stars: 260
Last commit: 1 week ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

Initial Release
40 weeks ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API