From cf48fad9e8c2cdec929d6f840240b1097b95156e Mon Sep 17 00:00:00 2001 From: Iiro Alhonen Date: Tue, 29 Nov 2022 16:53:41 +0200 Subject: [PATCH 1/2] Center location on user location. --- Bean Juice/Views/Views/Map/MapViewModel.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bean Juice/Views/Views/Map/MapViewModel.swift b/Bean Juice/Views/Views/Map/MapViewModel.swift index 8f51680..8546f21 100644 --- a/Bean Juice/Views/Views/Map/MapViewModel.swift +++ b/Bean Juice/Views/Views/Map/MapViewModel.swift @@ -44,7 +44,7 @@ final class MapViewModel: NSObject, ObservableObject { case .denied: alertItem = AlertContext.locationDenied case .authorizedAlways, .authorizedWhenInUse: - break + region = MKCoordinateRegion(center: deviceLocationManager.location!.coordinate, latitudinalMeters: 2000, longitudinalMeters: 2000) @unknown default: break } From 7fd4016e7ab80bbc9de291e2312ab94cd7dc4bff Mon Sep 17 00:00:00 2001 From: Iiro Alhonen Date: Tue, 29 Nov 2022 16:54:32 +0200 Subject: [PATCH 2/2] Bump version. --- Bean Juice.xcodeproj/project.pbxproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Bean Juice.xcodeproj/project.pbxproj b/Bean Juice.xcodeproj/project.pbxproj index b467fef..09666c6 100644 --- a/Bean Juice.xcodeproj/project.pbxproj +++ b/Bean Juice.xcodeproj/project.pbxproj @@ -711,7 +711,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 3.7.1; + MARKETING_VERSION = 3.7.2; PRODUCT_BUNDLE_IDENTIFIER = com.niftytreestudios.beanjuice; PRODUCT_NAME = "$(TARGET_NAME)"; SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; @@ -749,7 +749,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 3.7.1; + MARKETING_VERSION = 3.7.2; PRODUCT_BUNDLE_IDENTIFIER = com.niftytreestudios.beanjuice; PRODUCT_NAME = "$(TARGET_NAME)"; SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";