mirror of
https://github.com/EmergeTools/Pow.git
synced 2026-03-25 08:55:50 +00:00
0.1.1
Co-authored-by: MVP Bot <bot@movingparts.io> Co-authored-by: Kasper Lahti <kasper@movingparts.io>
This commit is contained in:
parent
2f17435ad5
commit
c51ab74506
2 changed files with 22 additions and 2 deletions
|
|
@ -15,8 +15,8 @@ let package = Package(
|
||||||
targets: [
|
targets: [
|
||||||
.binaryTarget(
|
.binaryTarget(
|
||||||
name: "Pow",
|
name: "Pow",
|
||||||
url: "https://packages.movingparts.io/binaries/pow/0.1.0/Pow.xcframework.zip",
|
url: "https://packages.movingparts.io/binaries/pow/0.1.1/Pow.xcframework.zip",
|
||||||
checksum: "27bfbae340405068387782b4f3712b58fa07225003c85c347f4d3c2122df8507"
|
checksum: "5ae07875130ecb40d9310460b13da6aaa6f783d1e6e9af88b7c96a1ba32fd22a"
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
|
||||||
20
README.md
20
README.md
|
|
@ -155,6 +155,26 @@ The shine moves from the top leading edge to bottom trailing edge.
|
||||||
static var shine: AnyChangeEffect
|
static var shine: AnyChangeEffect
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Highlights the view with a shine moving over the view.
|
||||||
|
|
||||||
|
The shine moves from the top leading edge to bottom trailing edge.
|
||||||
|
|
||||||
|
```swift
|
||||||
|
static func shine(duration: Double) -> AnyChangeEffect
|
||||||
|
```
|
||||||
|
|
||||||
|
Highlights the view with a shine moving over the view.
|
||||||
|
|
||||||
|
The angle is relative to the current `layoutDirection`, such that 0° represents sweeping towards the trailing edge and 90° represents sweeping towards the top edge.
|
||||||
|
|
||||||
|
- Parameters:
|
||||||
|
- `angle`: The angle of the animation.
|
||||||
|
- `duration`: The duration of the animation.
|
||||||
|
|
||||||
|
```swift
|
||||||
|
static func shine(angle: Angle, duration: Double = 1.0) -> AnyChangeEffect
|
||||||
|
```
|
||||||
|
|
||||||
### Spin
|
### Spin
|
||||||
|
|
||||||
[Preview](https://movingparts.io/pow/#spin)
|
[Preview](https://movingparts.io/pow/#spin)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue