This commit is contained in:
Trey t
2023-08-16 20:58:27 -05:00
parent b501f66bf3
commit 23eac5bae8
2 changed files with 10 additions and 8 deletions

View File

@@ -105,7 +105,7 @@
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
1CF65A9E2A452D290042FFBD /* PBXContainerItemProxy */ = {
1C530FB92A8C93AB00B766AA /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 1CF65A1A2A3972840042FFBD /* Project object */;
proxyType = 1;
@@ -472,7 +472,7 @@
buildRules = (
);
dependencies = (
1CF65A9F2A452D290042FFBD /* PBXTargetDependency */,
1C530FBA2A8C93AB00B766AA /* PBXTargetDependency */,
);
name = Werkout_ios;
packageProductDependencies = (
@@ -666,10 +666,10 @@
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
1CF65A9F2A452D290042FFBD /* PBXTargetDependency */ = {
1C530FBA2A8C93AB00B766AA /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 1CF65A922A452D270042FFBD /* Werkout_watch Watch App */;
targetProxy = 1CF65A9E2A452D290042FFBD /* PBXContainerItemProxy */;
targetProxy = 1C530FB92A8C93AB00B766AA /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */

View File

@@ -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)
}
}
}
}