Add more preview links to README

This commit is contained in:
Robb Böhnke 2022-10-25 12:08:21 +02:00 committed by GitHub
parent 27945b3311
commit 2f17435ad5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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