Glorifier

1.1.0

Give your views a shiny spotlight effect
no-comment/Glorifier

What's New

1.1.0

2022-11-23T10:29:43Z
  • Add the new lightIntensity parameter

Glorifier

Preview

Glorifier allows you to add a certain bedazzle to your view by giving them a shiny spotlight effect:

glorifier preview

Installation

Swift Package Manager

Add https://github.com/no-comment/Glorifier.git to your Package Dependencies.

Usage

Just use the .glorified() modifier as you would use any other:

MyView()
    .glorified()

There are five parameters to further customize the effect:

Parameter Type Default Value Description
duration Double 15 Duration of a cycle in seconds
rotationIntensity Double 10 Intensity of the 3D rotation effect
shadowColor Color .gray Color of the shadow
shadowOffset Double 15 Offset of the shadow
lightIntensity Double 0.2 Intensity of the light effect (between 0 and 1)

Description

  • Swift Tools 5.7.0
View More Packages from this Author

Dependencies

  • None
Last updated: Fri Mar 15 2024 10:22:14 GMT-0900 (Hawaii-Aleutian Daylight Time)