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

View File

@@ -117,10 +117,12 @@ class HealthKitHelper {
} }
func shitReturned() { func shitReturned() {
returnCount += 1 DispatchQueue.main.async {
print("\(returnCount)") self.returnCount += 1
if returnCount == 2 { print("\(self.returnCount)")
self.completion!(healthKitWorkoutData) if self.returnCount == 2 {
self.completion!(self.healthKitWorkoutData)
}
} }
} }
} }