Co-authored-by: MVP Bot <bot@movingparts.io>
Co-authored-by: Kasper Lahti <kasper@movingparts.io>
This commit is contained in:
Robb Böhnke 2022-10-27 15:57:35 +02:00 committed by GitHub
parent 2f17435ad5
commit c51ab74506
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 2 deletions

View file

@ -15,8 +15,8 @@ let package = Package(
targets: [
.binaryTarget(
name: "Pow",
url: "https://packages.movingparts.io/binaries/pow/0.1.0/Pow.xcframework.zip",
checksum: "27bfbae340405068387782b4f3712b58fa07225003c85c347f4d3c2122df8507"
url: "https://packages.movingparts.io/binaries/pow/0.1.1/Pow.xcframework.zip",
checksum: "5ae07875130ecb40d9310460b13da6aaa6f783d1e6e9af88b7c96a1ba32fd22a"
),
]
)

View file

@ -155,6 +155,26 @@ The shine moves from the top leading edge to bottom trailing edge.
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
[Preview](https://movingparts.io/pow/#spin)