File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
SwiftUI-WorkoutApp.xcodeproj
SwiftUI-WorkoutApp/Screens/Common/ParkLocation Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 879879 CLANG_TIDY_MISC_REDUNDANT_EXPRESSION = YES;
880880 CLANG_WARN_SEMICOLON_BEFORE_METHOD_BODY = YES;
881881 CODE_SIGN_STYLE = Automatic;
882- CURRENT_PROJECT_VERSION = 2 ;
882+ CURRENT_PROJECT_VERSION = 3 ;
883883 DEVELOPMENT_ASSET_PATHS = "SwiftUI-WorkoutApp/Preview\\ Content/PreviewContent.swift SwiftUI-WorkoutApp/Preview\\ Content";
884884 DEVELOPMENT_TEAM = CR68PP2Z3F;
885885 ENABLE_PREVIEWS = YES;
932932 CLANG_TIDY_MISC_REDUNDANT_EXPRESSION = YES;
933933 CLANG_WARN_SEMICOLON_BEFORE_METHOD_BODY = YES;
934934 CODE_SIGN_STYLE = Automatic;
935- CURRENT_PROJECT_VERSION = 2 ;
935+ CURRENT_PROJECT_VERSION = 3 ;
936936 DEVELOPMENT_ASSET_PATHS = "SwiftUI-WorkoutApp/Preview\\ Content/PreviewContent.swift SwiftUI-WorkoutApp/Preview\\ Content";
937937 DEVELOPMENT_TEAM = CR68PP2Z3F;
938938 ENABLE_PREVIEWS = YES;
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ struct MapSnapshotView: View {
2020 . animation ( . easeInOut, value: snapshotImage)
2121 . clipShape ( . rect( cornerRadius: 8 ) )
2222 . task ( id: mapModel) {
23- await generateSnapshot ( size: geo. size)
23+ await generateSnapshot ( size: geo. size, force : true )
2424 }
2525 . task ( id: geo. size) {
2626 await generateSnapshot ( size: geo. size)
@@ -67,12 +67,12 @@ private extension MapSnapshotView {
6767 }
6868
6969 @MainActor
70- func generateSnapshot( size: CGSize ) async {
70+ func generateSnapshot( size: CGSize , force : Bool = false ) async {
7171 guard mapModel. isComplete else {
7272 logger. error ( " Широта или долгота отсутствует! " )
7373 return
7474 }
75- guard currentSize != size else {
75+ guard currentSize != size || force else {
7676 logger. info ( " Пропускаем лишнюю генерацию картинки, т.к. размеры не изменились " )
7777 return
7878 }
You can’t perform that action at this time.
0 commit comments