Skip to content

Commit

Permalink
Address deprecation warning on animation (#847)
Browse files Browse the repository at this point in the history
* address deprecation warning in watchOS 8.0

Signed-off-by: Tim Bert <[email protected]>

---------

Signed-off-by: Tim Bert <[email protected]>
  • Loading branch information
timbms authored Oct 30, 2024
1 parent 22f5f57 commit 3203bad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openHABWatch/Views/Utils/ColorSelection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ struct ColorSelection: View {
.foregroundColor(.white)
.frame(width: 25, height: 25, alignment: .center)
.position(limitCircle(CGPoint(x: xpos, y: ypos), geometry.size, thumb.translation))
.animation(.interactiveSpring())
.animation(.interactiveSpring(), value: thumb.isDragging)
.gesture(longPressDrag)
}
}
Expand Down

0 comments on commit 3203bad

Please sign in to comment.