From 438e923de55e710415fb22da302b17f00eced40e Mon Sep 17 00:00:00 2001 From: Kiryl Kaveryn Date: Tue, 24 Dec 2024 13:10:13 +0400 Subject: [PATCH] [ios] fix live activity background color Signed-off-by: Kiryl Kaveryn --- .../LiveActivity/TrackRecordingLiveActivityView.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iphone/Maps/OMapsWidgetExtension/LiveActivity/TrackRecordingLiveActivityView.swift b/iphone/Maps/OMapsWidgetExtension/LiveActivity/TrackRecordingLiveActivityView.swift index e1d5bbaa08..3050d5e90a 100644 --- a/iphone/Maps/OMapsWidgetExtension/LiveActivity/TrackRecordingLiveActivityView.swift +++ b/iphone/Maps/OMapsWidgetExtension/LiveActivity/TrackRecordingLiveActivityView.swift @@ -24,7 +24,9 @@ struct TrackRecordingLiveActivityView: View { } .padding([.leading, .trailing, .bottom], 16) } - .background(.primary.opacity(0.15)) + .activityBackgroundTint(.black.opacity(0.2)) + // Uncomment the line below to simulate the background color in Preview because the `activityBackgroundTint` can only displayed on the device or simulator. + //.background(.black.opacity(0.85)) } }