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 Is DragGesture buggy or am I messing something up?
Corrigendum: in fact the real angle is the one betwwen the vertical rect (y-axis) and the vector, not between vector and x-axis as drawn on figure.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’23
Comment on Is it possible to serialize/deserialize closures in swift?
So, did you answer the question ? If so, don't forget to close the thread.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Mar ’23
Comment on Have 2 Task with for loops run concurrently?
Thanks for all the feedback. Is issue solved now ? If so, don't forget to close the thread to keep forum clean.
Topic: App & System Services SubTopic: Core OS 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
Comment on Why wont my decoder parse .json files
Unless T itself is an array, which is not told. Otherwise, load return which item from the file ?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’23
Comment on Goodbye SceneDelegate, what to do now?
Thanks for feedback. Don't forget to close the thread.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Mar ’23
Comment on How to add divider/border to footer in SwiftUI when using Section(footer: ) contructor
A good practice on the forum is to tell how you fixed it. Other developers may have spent time to analyse your question, it is fair to explain how you solved.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’23
Comment on Playground do not respond .
Thanks for feedback. Don't forget to close the thread.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Mar ’23
Comment on iOS 16.4 incompatible with Xcode 14.2 !
AFAIK, 16.4 is still beta (Beta 4), not a release version (unless I missed something), so there may be some delays to sync all tools.
Replies
Boosts
Views
Activity
Mar ’23
Comment on swiftui: navigationsplitview crashes in landscape on ipad (ios 16.2)
To solve the issue in my case, I replaced List with a ForEach.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’23
Comment on Picker with attached functions.
Thanks for the feedback and good continuation. The lesson is that in SwiftUI, modifiers are extremely important and useful.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Mar ’23
Comment on Forum editor bug since last maintenance
Thanks. Sometimes, the forum software is like reggae: one step forward, 2 steps backward… 😉
Replies
Boosts
Views
Activity
Mar ’23
Comment on Passing object between NSViewController
Wish you good continuation.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’23
Comment on Picker Animation get's in the way of buttons, what to do?
Thanks for feedback. Video was not accessible.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Mar ’23
Comment on Replace substring using regex in a string
If you simply use String(Int(value)), 75.2 will return "75".
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Mar ’23