From 2f17435ad54fe43573ee4b00af3eac55383a78f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robb=20B=C3=B6hnke?= <212465+robb@users.noreply.github.com> Date: Tue, 25 Oct 2022 12:08:21 +0200 Subject: [PATCH] Add more preview links to README --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index b72bb8b..99a3b0e 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,8 @@ To add a package dependency to your Xcode project, select _File_ > _Add Package_ Pow features a selection of [SwiftUI transitions](#transitions) as well as [Change Effects](#change-effects) that trigger every time a value is updated. +You can find previews of all effects [on the Pow website](https://movingparts.io/pow). + ## Change Effects Change Effects are effects that will trigger a visual or haptic every time a value changes. @@ -40,6 +42,8 @@ You can choose from the following Change Effects: [Spray](#spray), [Haptic Feedb ### Spray +[Preview](https://movingparts.io/pow/#spray) + An effect that emits multiple particles in different shades and sizes moving up from the origin point. ```swift @@ -70,6 +74,8 @@ static func hapticFeedback(_ feedback: UINotificationFeedbackGenerator.FeedbackT ### Jump +[Preview](https://movingparts.io/pow/#jump) + Makes the view jump the given height and then bounces a few times before settling. - `height`: The height of the jump. @@ -80,6 +86,8 @@ static func jump(height: CGFloat) -> AnyChangeEffect ### Ping +[Preview](https://movingparts.io/pow/#ping) + Adds one or more shapes that slowly grow and fade-out behind the view. The shape will be colored by the current tint style. @@ -105,6 +113,8 @@ static func ping(shape: some InsettableShape, style: some ShapeStyle, count: Int ### Rise +[Preview](https://movingparts.io/pow/#rise) + An effect that emits the provided particles from the origin point and slowly float up while moving side to side. - Parameters: @@ -117,6 +127,8 @@ static func rise(origin: UnitPoint = .center, @ViewBuilder _ particles: () -> so ### Shake +[Preview](https://movingparts.io/pow/#shake) + Shakes the view when a change happens. ```swift @@ -133,6 +145,8 @@ static func shake(rate: ShakeRate) -> AnyChangeEffect ### Shine +[Preview](https://movingparts.io/pow/#shine) + Highlights the view with a shine moving over the view. The shine moves from the top leading edge to bottom trailing edge. @@ -143,6 +157,8 @@ static var shine: AnyChangeEffect ### Spin +[Preview](https://movingparts.io/pow/#spin) + Spins the view around the given axis when a change happens. ```swift