diff --git a/LifeSpace.xcodeproj/project.pbxproj b/LifeSpace.xcodeproj/project.pbxproj index 3f7d248..4cd7294 100644 --- a/LifeSpace.xcodeproj/project.pbxproj +++ b/LifeSpace.xcodeproj/project.pbxproj @@ -58,7 +58,7 @@ 634FFF672C169F40005E8217 /* LifeSpaceConsent.swift in Sources */ = {isa = PBXBuildFile; fileRef = 634FFF662C169F40005E8217 /* LifeSpaceConsent.swift */; }; 634FFF6D2C16B81A005E8217 /* HIPAAAuthorization.swift in Sources */ = {isa = PBXBuildFile; fileRef = 634FFF6C2C16B81A005E8217 /* HIPAAAuthorization.swift */; }; 635198792CD53FF40087B1F3 /* FirebaseConfiguration.swift in Sources */ = {isa = PBXBuildFile; fileRef = 635198782CD53FF10087B1F3 /* FirebaseConfiguration.swift */; }; - 639B69DB2C2BCD6A00C0FF4A /* ConsentPDFVIewer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 639B69DA2C2BCD6A00C0FF4A /* ConsentPDFVIewer.swift */; }; + 639B69DB2C2BCD6A00C0FF4A /* ConsentPDFViewer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 639B69DA2C2BCD6A00C0FF4A /* ConsentPDFViewer.swift */; }; 63A28D312C0580310025A1E0 /* RefreshIcon.swift in Sources */ = {isa = PBXBuildFile; fileRef = 63A28D302C0580310025A1E0 /* RefreshIcon.swift */; }; 63A28D332C062E2E0025A1E0 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 63A28D322C062E2E0025A1E0 /* GoogleService-Info.plist */; }; 63A8DB292C1FE81200939757 /* AppIcon.png in Resources */ = {isa = PBXBuildFile; fileRef = 63A8DB282C1FE81200939757 /* AppIcon.png */; }; @@ -140,7 +140,7 @@ 634FFF662C169F40005E8217 /* LifeSpaceConsent.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LifeSpaceConsent.swift; sourceTree = ""; }; 634FFF6C2C16B81A005E8217 /* HIPAAAuthorization.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HIPAAAuthorization.swift; sourceTree = ""; }; 635198782CD53FF10087B1F3 /* FirebaseConfiguration.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FirebaseConfiguration.swift; sourceTree = ""; }; - 639B69DA2C2BCD6A00C0FF4A /* ConsentPDFVIewer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConsentPDFVIewer.swift; sourceTree = ""; }; + 639B69DA2C2BCD6A00C0FF4A /* ConsentPDFViewer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConsentPDFViewer.swift; sourceTree = ""; }; 63A28D302C0580310025A1E0 /* RefreshIcon.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RefreshIcon.swift; sourceTree = ""; }; 63A28D322C062E2E0025A1E0 /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = ""; }; 63A8DB282C1FE81200939757 /* AppIcon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = AppIcon.png; sourceTree = ""; }; @@ -404,7 +404,7 @@ A9FE7ACF2AA39BAB0077B045 /* AccountSheet.swift */, A9720E422ABB68CC00872D23 /* AccountSetupHeader.swift */, A9DFE8A82ABE551400428242 /* AccountButton.swift */, - 639B69DA2C2BCD6A00C0FF4A /* ConsentPDFVIewer.swift */, + 639B69DA2C2BCD6A00C0FF4A /* ConsentPDFViewer.swift */, 63D86AD52C3B7F310096B9DB /* DocumentWebView.swift */, 630D3B562C616E9D006066E5 /* WithdrawView.swift */, ); @@ -638,7 +638,7 @@ 2FE5DC3529EDD7CA004B9AB4 /* Consent.swift in Sources */, 630D3B572C616E9D006066E5 /* WithdrawView.swift in Sources */, 63EA5F8C2BC78F8400A48590 /* DailySurveyResponse.swift in Sources */, - 639B69DB2C2BCD6A00C0FF4A /* ConsentPDFVIewer.swift in Sources */, + 639B69DB2C2BCD6A00C0FF4A /* ConsentPDFViewer.swift in Sources */, 2FE5DC4529EDD7F2004B9AB4 /* Binding+Negate.swift in Sources */, 63497B732BBF855E001F8419 /* OptionsPanel.swift in Sources */, 63D86AD62C3B7F310096B9DB /* DocumentWebView.swift in Sources */, diff --git a/LifeSpace/Account/ConsentPDFVIewer.swift b/LifeSpace/Account/ConsentPDFViewer.swift similarity index 100% rename from LifeSpace/Account/ConsentPDFVIewer.swift rename to LifeSpace/Account/ConsentPDFViewer.swift diff --git a/LifeSpace/Account/WithdrawView.swift b/LifeSpace/Account/WithdrawView.swift index 861492e..3ed9574 100644 --- a/LifeSpace/Account/WithdrawView.swift +++ b/LifeSpace/Account/WithdrawView.swift @@ -64,7 +64,7 @@ struct WithdrawView: View { Spacer() Button(action: { - // Send user back to onboarding flow + /// Send user back to onboarding flow completedOnboardingFlow = false }, label: { Text("CLOSE") @@ -77,14 +77,14 @@ struct WithdrawView: View { } private func processWithdrawal() async { - // Stop location tracking + /// Stop location tracking locationModule.stopTracking() UserDefaults.standard.set(false, forKey: StorageKeys.trackingPreference) - // Clear the user's study ID + /// Clear the user's study ID studyID = "" - // Sign out the user + /// Sign out the user do { try Auth.auth().signOut() } catch { @@ -92,10 +92,10 @@ struct WithdrawView: View { self.showingAlert = true } - // Remove the user's account - await account.removeUserDetails() + /// Remove the user's account + account.removeUserDetails() - // Instruct the user to delete the app + /// Instruct the user to delete the app self.showingDeleteSheet = true } } diff --git a/LifeSpace/Survey/SurveyModule.swift b/LifeSpace/Survey/SurveyModule.swift index 96d088e..3e5a749 100644 --- a/LifeSpace/Survey/SurveyModule.swift +++ b/LifeSpace/Survey/SurveyModule.swift @@ -28,7 +28,7 @@ enum SurveyModule { static var surveyAlreadyTaken: Bool { let lastSurveyDateString = UserDefaults.standard.string(forKey: StorageKeys.lastSurveyDate) - // Determine the survey date based on the current time + /// Determine the survey date based on the current time let surveyDate: Date if currentHour < 7 { surveyDate = Calendar.current.date(byAdding: .day, value: -1, to: Date())?.startOfDay ?? Date().startOfDay @@ -36,10 +36,10 @@ enum SurveyModule { surveyDate = Date().startOfDay } - // Format the survey date to a string + /// Format the survey date to a string let surveyDateString = dateFormatter.string(from: surveyDate) - // Compare the last survey date with the calculated survey date + /// Compare the last survey date with the calculated survey date return lastSurveyDateString == surveyDateString }