From b523315e825bc7639e9956612a8862bcdcbca89c Mon Sep 17 00:00:00 2001 From: Benoit Martins Date: Mon, 21 Oct 2024 11:23:31 +0200 Subject: [PATCH] Fix view layout when app returns to foreground --- Linphone/UI/Main/ContentView.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Linphone/UI/Main/ContentView.swift b/Linphone/UI/Main/ContentView.swift index 776f6f0bd..0dd98f609 100644 --- a/Linphone/UI/Main/ContentView.swift +++ b/Linphone/UI/Main/ContentView.swift @@ -1231,6 +1231,7 @@ struct ContentView: View { } .onChange(of: scenePhase) { newPhase in CoreContext.shared.enteredForeground = newPhase == .active + orientation = UIDevice.current.orientation } }