目录
目录README.md

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)
关于
44.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

©Copyright 2023 CCF 开源发展委员会
Powered by Trustie& IntelliDE 京ICP备13000930号