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)