WIP
This commit is contained in:
@@ -117,10 +117,12 @@ class HealthKitHelper {
|
||||
}
|
||||
|
||||
func shitReturned() {
|
||||
returnCount += 1
|
||||
print("\(returnCount)")
|
||||
if returnCount == 2 {
|
||||
self.completion!(healthKitWorkoutData)
|
||||
DispatchQueue.main.async {
|
||||
self.returnCount += 1
|
||||
print("\(self.returnCount)")
|
||||
if self.returnCount == 2 {
|
||||
self.completion!(self.healthKitWorkoutData)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user