Post

Replies

Boosts

Views

Activity

Comment on Is DragGesture buggy or am I messing something up?
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:
Mar ’23
Comment on Problem with UIBarButton menu
The point would be to be able to test the code to find out the issue. What is self in self.edit ? What if you replace self.edit() by a call to a dummy func as func test() { print("Test", self) }
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Mar ’23
Comment on Is DragGesture buggy or am I messing something up?
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:
Replies
Boosts
Views
Activity
Mar ’23