From 0a06644473809da57b7966943bf77aff2a403b09 Mon Sep 17 00:00:00 2001 From: Christophe Deschamps Date: Sat, 4 Oct 2025 08:55:39 +0200 Subject: [PATCH] Dynamic update of colours upon theme change --- Linphone/LinphoneApp.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Linphone/LinphoneApp.swift b/Linphone/LinphoneApp.swift index 207a0cdfc..2b36bf4a3 100644 --- a/Linphone/LinphoneApp.swift +++ b/Linphone/LinphoneApp.swift @@ -259,6 +259,7 @@ struct MainViewSwitcher: View { let sharedMainViewModel: SharedMainViewModel @Binding var pendingURL: URL? let appDelegate: AppDelegate + @ObservedObject private var colors = ColorProvider.shared var body: some View { selectedMainView() @@ -277,5 +278,6 @@ struct MainViewSwitcher: View { navigationManager.openChatRoom(callId: callId, peerAddr: peerAddr, localAddr: localAddr) } } + .id(colors.theme.name) } }