- July 11, 2025
- Mins Read
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
File > Swift Packages > Add Package Dependency: https://github.com/maustinstar/shiny
Add a dependency in your your Package.swift
.package(url: “https://github.com/maustinstar/shiny.git”, from: “0.0.1”),
.shiny()
to get started.
import Shiny
…
Text(“Hello, shiny world! ✨”).shiny()
See the full Reference Guide.
Text(“shiny”)
.font(.largeTitle)
.fontWeight(.bold).shiny()
.background(
RoundedRectangle(cornerRadius: 14.0)
.frame(width: 200.0, height: 70.0)
.shiny(.hyperGlossy(UIColor.systemGray5)))
A SwiftUI View that emits confetti with user-defined shapes, images, and text.
A colour wheel made all in SwiftUI. There are 2 different colour wheels to choose from. The first main one ...
A color picker implementation with color wheel appearance written in plain SwiftUI. It is compatible with UIColor and NSColor.
This repository is no longer maintained. Here's why: with the release of iOS 16 SwiftUI now enables most of the ...