Skip to content

Commit

Permalink
Test to fix bug of Value Auto Rotation over property "animation".
Browse files Browse the repository at this point in the history
  • Loading branch information
matteofontana-app committed Jun 14, 2023
1 parent 1489200 commit fe92b35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file not shown.
4 changes: 2 additions & 2 deletions Sources/OneFingerRotation/Version 1.0/ValueAutoRotation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ public struct ValueAutoRotation: ViewModifier {
}
.position(x: geometry.size.width / 2, y: geometry.size.height / 2)
.rotationEffect(rotationAngle, anchor: .center)
.onChange(of: totalAngle) { newValue in
if isDragged {
.onChange(of: rotationAngle) { newValue in
if !isDragged {
if let animation = animation {
withAnimation(animation) {
rotationAngle = Angle(degrees: newValue)
Expand Down

0 comments on commit fe92b35

Please sign in to comment.