mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-04-17 11:48:27 +00:00
Fix PopupLoadingView size
This commit is contained in:
parent
66f2ac6fdc
commit
fd2730661d
3 changed files with 4 additions and 2 deletions
|
|
@ -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"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue