Update Docs for Vanish

This commit is contained in:
Robert Böhnke 2022-10-13 16:07:57 +02:00
parent b7218a1f77
commit 9bb00d50bd

View file

@ -472,7 +472,7 @@ A transition that dissolves the view into many small particles.
The transition is only performed on removal.
> **Note:**
> This transition will use an ease-out animation with a duration of 900ms by default.
> This transition will use an ease-out animation with a duration of 900ms if the current `Animation` is `.default`.
```swift
static var vanish: AnyTransition
@ -483,7 +483,7 @@ A transition that dissolves the view into many small particles.
The transition is only performed on removal.
> **Note:**
> This transition will use an ease-out animation with a duration of 900ms by default.
> This transition will use an ease-out animation with a duration of 900ms if the current `Animation` is `.default`.
- Parameter `style`: The style to use for the particles.
@ -491,6 +491,21 @@ The transition is only performed on removal.
static func vanish<S: ShapeStyle>(_ style: S) -> AnyTransition
```
A transition that dissolves the view into many small particles following a given shape.
The transition is only performed on removal.
> **Note:**
> This transition will use an ease-out animation with a duration of 900ms if the current `Animation` is `.default`.
- Parameter `style`: The style to use for the particles.
- Parameter `mask`: The mask that determines where particles should be placed.
- Parameter `eoFill`: A Boolean that indicates whether the shape is interpreted with the even-odd winding number rule.
```swift
static func vanish<T: ShapeStyle, S: Shape>(_ style: T, mask: S, eoFill: Bool = false) -> AnyTransition
```
### Wipe
[Preview](https://movingparts.io/pow/#wipe)