wip
This commit is contained in:
@@ -76,19 +76,19 @@ struct CompletedWorkoutView: View {
|
||||
.onAppear{
|
||||
bridgeModule.sendWorkoutCompleteToWatch()
|
||||
}
|
||||
.onChange(of: bridgeModule.healthKitUUID, perform: { healthKitUUID in
|
||||
if let healthKitUUID = healthKitUUID {
|
||||
gettingHealthKitData = true
|
||||
healthKitHelper.getDetails(forHealthKitUUID: healthKitUUID,
|
||||
completion: { healthKitWorkoutData in
|
||||
guard let healthStore = healthKitWorkoutData else {
|
||||
return
|
||||
}
|
||||
self.healthKitWorkoutData = healthKitWorkoutData
|
||||
gettingHealthKitData = false
|
||||
})
|
||||
}
|
||||
})
|
||||
// .onChange(of: bridgeModule.healthKitUUID, perform: { healthKitUUID in
|
||||
// if let healthKitUUID = healthKitUUID {
|
||||
// gettingHealthKitData = true
|
||||
// healthKitHelper.getDetails(forHealthKitUUID: healthKitUUID,
|
||||
// completion: { healthKitWorkoutData in
|
||||
// guard let healthStore = healthKitWorkoutData else {
|
||||
// return
|
||||
// }
|
||||
// self.healthKitWorkoutData = healthKitWorkoutData
|
||||
// gettingHealthKitData = false
|
||||
// })
|
||||
// }
|
||||
// })
|
||||
}
|
||||
|
||||
func upload(postBody: [String: Any]) {
|
||||
|
||||
Reference in New Issue
Block a user