Usage details for .shiny()
Just import Shiny and modify your view with .shiny()
to get started.
Import Shiny
...
Text("Hello, shiny world! ✨").shiny()
The .shiny()
view modifier takes a gradient parameter to define the shiny surface. By default, .shiny()
uses Gradient.rainbow
.
Cycles through the system colors in rainbow order.
Cycles through translucent blues and purples that add an extra sparkle to your views.
Generates a matte surface from a given color, modeling a dispersed light source.
Generates a matte surface from a given color, modeling a focused light source.
Generates a matte surface from a given color, modeling an intense light source.
Write your own gradient for a shiny view.