Post

Replies

Boosts

Views

Activity

Drag Drop on macOS 13: Delay after dropping item
I'm working on an app supporting drag and dropping items from one to another collection. I begun developing under monterey using a dedicated DropDelegate with custom UTType. I just continued developing, now under ventura, and noticed that just after I drop an element, the element just stays there for about half a second and just gets non-transparent and suddenly disappears. I tried using the new draggable-modifier usign the Transferable Protocol, but this has the same problem. My question: Is this behaviour a new intended change? If yes, is there a way to change the disappear behaviour (like shrinking, moving to a specified place, transforming)? Best
1
0
588
Nov ’22
How to add HKQuantity to HKWorkout with WorkoutBuilder
At the moment I am working on a running app for the iPhone. One issue that I have is, that I am building the HKWorkout using the HKWorkoutBuilder according to Apples Documentation - https://developer.apple.com/documentation/healthkit/hkworkoutbuilder. But I am not able to associate the totalDistance with the workout – mentioned here in the Documentation - https://developer.apple.com/documentation/healthkit/workouts_and_activity_rings/adding_samples_to_a_workout. totalDistance is nil when I try to read it from the workout – no surprise. I think I miss something here. Thanks in advance.
3
0
1.2k
Mar ’21
Bad Resize Preformance macOS because of Stacks?
Hey, On my current project I have a vertical Scroll View with around 12 Items consisting of nested VStack and HStacks. I noticed that the performance of resizing the window is really bad, maybe because of rerendering of the nested Stacks. With one Element the performance is good but with more elements it drops really fast. I fixed the size of some Stacks and that helped a bit, but the performance is still really bad. Edit: It seems that this is a problem of a multiple forms inside the scrollView which gets resized by window resizing... SwiftUI seems to handle resize of a form / the inputs really bad. Is there a better practice of nested stacks or anything I can do? Best
1
0
454
Sep ’22
Distance doesnt get associated with HKWorkout
I am working on a running app for the iPhone. The Workout gets created using the HKWorkoutBuilder – according to the Documentation. The activity type is set to .running in the Configuration. After calling endCollection() – before calling finishWorkout()– on the HKWorkoutBuilder I am adding distance samples to the Workout. Weirdly, the totalDistance of the Workout doesnt get populated. And if I take a look into the Health App there is no total distance either – but a »Distance Walking Running« with a double unit (like 10.5 km km), and the distance samples ive added. In the overview of the trainings (with the big app icon left hand side) there is even a blank spot where the distance is supposed to be, I think. (like Running: 35 Min. | --). Do I miss something here, or is this
1
0
617
Mar ’21