From fd2730661d59aab6afad98361896b62e87e2bf19 Mon Sep 17 00:00:00 2001 From: Benoit Martins Date: Thu, 5 Mar 2026 14:52:31 +0100 Subject: [PATCH] Fix PopupLoadingView size --- Linphone/GeneratedGit.swift | 2 +- Linphone/UI/Main/ContentView.swift | 1 - Linphone/UI/Main/Fragments/PopupLoadingView.swift | 3 +++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Linphone/GeneratedGit.swift b/Linphone/GeneratedGit.swift index 5884cfddd..1bb181842 100644 --- a/Linphone/GeneratedGit.swift +++ b/Linphone/GeneratedGit.swift @@ -2,6 +2,6 @@ import Foundation public enum AppGitInfo { public static let branch = "master" - public static let commit = "6c5bf4306" + public static let commit = "66f2ac6fd" public static let tag = "6.1.0-alpha" } diff --git a/Linphone/UI/Main/ContentView.swift b/Linphone/UI/Main/ContentView.swift index 084f0ea07..58eb8c529 100644 --- a/Linphone/UI/Main/ContentView.swift +++ b/Linphone/UI/Main/ContentView.swift @@ -1389,7 +1389,6 @@ struct ContentView: View { if sharedMainViewModel.operationInProgress { PopupLoadingView() - .frame(maxWidth: .infinity, maxHeight: .infinity) .padding(.bottom, UIDevice.current.userInterfaceIdiom == .pad && (orientation == .landscapeLeft || orientation == .landscapeRight || UIScreen.main.bounds.size.width > UIScreen.main.bounds.size.height) ? geometry.safeAreaInsets.bottom : 0) .background(.black.opacity(0.65)) .zIndex(3) diff --git a/Linphone/UI/Main/Fragments/PopupLoadingView.swift b/Linphone/UI/Main/Fragments/PopupLoadingView.swift index 15e07221a..46fa72637 100644 --- a/Linphone/UI/Main/Fragments/PopupLoadingView.swift +++ b/Linphone/UI/Main/Fragments/PopupLoadingView.swift @@ -21,6 +21,8 @@ import SwiftUI struct PopupLoadingView: View { + @State private var orientation = UIDevice.current.orientation + var body: some View { VStack { ProgressView() @@ -42,6 +44,7 @@ struct PopupLoadingView: View { .padding(.horizontal) .shadow(color: Color.orangeMain500, radius: 0, x: 0, y: 2) .frame(maxWidth: SharedMainViewModel.shared.maxWidth) + .frame(maxWidth: .infinity, maxHeight: .infinity) } }