Skip to content

Commit b16f2c8

Browse files
authored
Fix example in README.md
1 parent 642a9ec commit b16f2c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ struct RandomOffsetTransition: Transition {
1111
@Random(distance: 20) var offset: CGSize
1212

1313
func body(content: Content, phase: TransitionPhase) -> some View {
14-
content.offset(offset)
14+
content.offset(phase.isIdentity ? .zero : offset)
1515
}
1616
}
1717
```

0 commit comments

Comments
 (0)