From c51ab74506edc556c570d1051f99a55be0aca4e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robb=20B=C3=B6hnke?= <212465+robb@users.noreply.github.com> Date: Thu, 27 Oct 2022 15:57:35 +0200 Subject: [PATCH] 0.1.1 Co-authored-by: MVP Bot Co-authored-by: Kasper Lahti --- Package.swift | 4 ++-- README.md | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/Package.swift b/Package.swift index 2c995b7..59c18dd 100644 --- a/Package.swift +++ b/Package.swift @@ -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" ), ] ) diff --git a/README.md b/README.md index 99a3b0e..55682b4 100644 --- a/README.md +++ b/README.md @@ -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)