From 3254c3ed9d099cbec25fbaccf4323708e4d94526 Mon Sep 17 00:00:00 2001 From: Jim Bisenius Date: Mon, 20 May 2024 19:44:44 -0400 Subject: [PATCH] Fix bug 2 --- Calorie Counter.xcodeproj/project.pbxproj | 4 ++-- Calorie Counter/Screens/ProcessingView.swift | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Calorie Counter.xcodeproj/project.pbxproj b/Calorie Counter.xcodeproj/project.pbxproj index 82d6e82..6190301 100644 --- a/Calorie Counter.xcodeproj/project.pbxproj +++ b/Calorie Counter.xcodeproj/project.pbxproj @@ -390,7 +390,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 0.6.1; + MARKETING_VERSION = 0.6.2; PRODUCT_BUNDLE_IDENTIFIER = "cx.jims.calorie-counter"; PRODUCT_NAME = "$(TARGET_NAME)"; SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; @@ -433,7 +433,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 0.6.1; + MARKETING_VERSION = 0.6.2; PRODUCT_BUNDLE_IDENTIFIER = "cx.jims.calorie-counter"; PRODUCT_NAME = "$(TARGET_NAME)"; SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; diff --git a/Calorie Counter/Screens/ProcessingView.swift b/Calorie Counter/Screens/ProcessingView.swift index 531e5ad..693497b 100644 --- a/Calorie Counter/Screens/ProcessingView.swift +++ b/Calorie Counter/Screens/ProcessingView.swift @@ -50,6 +50,8 @@ struct ProcessingView: View { barcode = "" mealDescription = "" imageData = nil + // Calculate time to process + timeToProcess = String(format: "%.1f", Date().timeIntervalSince(startTime)) } catch { print("Error: Failed to save meal info from barcode.") errorHasOccured = true