We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 642a9ec commit b16f2c8Copy full SHA for b16f2c8
README.md
@@ -11,7 +11,7 @@ struct RandomOffsetTransition: Transition {
11
@Random(distance: 20) var offset: CGSize
12
13
func body(content: Content, phase: TransitionPhase) -> some View {
14
- content.offset(offset)
+ content.offset(phase.isIdentity ? .zero : offset)
15
}
16
17
```
0 commit comments