That is now solved in the last code I sent. Problem was because angle value jumped when crossing some limits. So it's not an atan2 issue, but in its use: when value.translation changes sign, there is a steep jump from -π/2 to π/2. Tell if that's OK now and don't forget to close the thread on last answer if it works.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: