Gif showing the delay:
Post
Replies
Boosts
Views
Activity
I get this compiler errors on your iOS 15 example.
Static method 'buildBlock' requires that 'Row<EmptyView, Toggle<Text>>' conform to 'View'
Static method 'buildBlock' requires that 'Row<Label<Text, Image>, SecureField<Text>>' conform to 'View'
Static method 'buildBlock' requires that 'Row<Text, TextField<Text>>' conform to 'View'
EDIT:
Add View protocol to Row.
EDIT:
The outcome does not look quite right:
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.
Just noticed that I was not adding the distance samples with a completion handler – and did not waited for completition until I called finishWorkout() on the builder. I think that messed up the workout somehow.
This seems to work, but doesnt populate totalDistance parameter – at least for me. But I can now get the distance from the associated HKQuantitySample.
And the spot in the HealthApp is still empty.. (Run: 25 Min. | --)
Is that the way to go?