From 7831b7e615f5f60a7a1c1ac6a3c9968cc581292c Mon Sep 17 00:00:00 2001 From: Selim Mustafaev Date: Sun, 13 Apr 2025 22:19:44 +0300 Subject: [PATCH] Fix for map screen title --- AutoCat.xcodeproj/project.pbxproj | 4 ++-- AutoCat/Screens/MapScreen/MapViewModel.swift | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/AutoCat.xcodeproj/project.pbxproj b/AutoCat.xcodeproj/project.pbxproj index ad657b9..fba88ac 100644 --- a/AutoCat.xcodeproj/project.pbxproj +++ b/AutoCat.xcodeproj/project.pbxproj @@ -1837,7 +1837,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = AutoCat/AutoCat.entitlements; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 156; + CURRENT_PROJECT_VERSION = 157; DEVELOPMENT_TEAM = 46DTTB8X4S; INFOPLIST_FILE = AutoCat/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = AutoCat; @@ -1864,7 +1864,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = AutoCat/AutoCat.entitlements; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 156; + CURRENT_PROJECT_VERSION = 157; DEVELOPMENT_TEAM = 46DTTB8X4S; INFOPLIST_FILE = AutoCat/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = AutoCat; diff --git a/AutoCat/Screens/MapScreen/MapViewModel.swift b/AutoCat/Screens/MapScreen/MapViewModel.swift index 48585f1..06bdbec 100644 --- a/AutoCat/Screens/MapScreen/MapViewModel.swift +++ b/AutoCat/Screens/MapScreen/MapViewModel.swift @@ -62,6 +62,7 @@ final class MapViewModel: ACHudContainer { guard let self else { return } let events = try await apiService.events(with: filter) let markers = events.map(makeMarkerModel) + title = String.localizedStringWithFormat(NSLocalizedString("events found", comment: ""), events.count) await clusterManager.add(markers) await reloadMarkers() }