diff --git a/DatWeatherDoe.xcodeproj/project.pbxproj b/DatWeatherDoe.xcodeproj/project.pbxproj index 1b06505..145a3f8 100644 --- a/DatWeatherDoe.xcodeproj/project.pbxproj +++ b/DatWeatherDoe.xcodeproj/project.pbxproj @@ -861,7 +861,7 @@ CODE_SIGN_IDENTITY = "Mac Developer"; "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Mac Developer"; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 55; + CURRENT_PROJECT_VERSION = 56; DEAD_CODE_STRIPPING = YES; DEVELOPMENT_ASSET_PATHS = "\"DatWeatherDoe/Resources/DevelopmentAssets\" \"DatWeatherDoe/Resources/DevelopmentAssets/TestData.swift\""; DEVELOPMENT_TEAM = Q8X4D3A8MT; @@ -876,7 +876,7 @@ "$(inherited)", "@executable_path/../Frameworks", ); - MARKETING_VERSION = 5.6.0; + MARKETING_VERSION = 5.6.1; PRODUCT_BUNDLE_IDENTIFIER = com.inderdhir.DatWeatherDoe.debug; PRODUCT_NAME = DatWeatherDoe; PROVISIONING_PROFILE = ""; @@ -895,7 +895,7 @@ CODE_SIGN_IDENTITY = "Mac Developer"; "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Mac Developer"; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 55; + CURRENT_PROJECT_VERSION = 56; DEAD_CODE_STRIPPING = YES; DEVELOPMENT_ASSET_PATHS = "\"DatWeatherDoe/Resources/DevelopmentAssets\" \"DatWeatherDoe/Resources/DevelopmentAssets/TestData.swift\""; DEVELOPMENT_TEAM = Q8X4D3A8MT; @@ -910,7 +910,7 @@ "$(inherited)", "@executable_path/../Frameworks", ); - MARKETING_VERSION = 5.6.0; + MARKETING_VERSION = 5.6.1; PRODUCT_BUNDLE_IDENTIFIER = com.inderdhir.DatWeatherDoe; PRODUCT_NAME = DatWeatherDoe; PROVISIONING_PROFILE = ""; diff --git a/DatWeatherDoe/ViewModel/Repository/System/SystemLocationFetcher.swift b/DatWeatherDoe/ViewModel/Repository/System/SystemLocationFetcher.swift index a9bb664..d637c64 100644 --- a/DatWeatherDoe/ViewModel/Repository/System/SystemLocationFetcher.swift +++ b/DatWeatherDoe/ViewModel/Repository/System/SystemLocationFetcher.swift @@ -104,13 +104,15 @@ final actor SystemLocationFetcher: NSObject, SystemLocationFetcherType { } private func requestLocation() async throws -> CLLocationCoordinate2D { - try await withCheckedThrowingContinuation { continuation in + let coordinate = try await withCheckedThrowingContinuation { continuation in locationUpdateContinuation = continuation Task { @MainActor in locationManager.startUpdatingLocation() } } + locationUpdateContinuation = nil + return coordinate } }