From fdb4e16d3224c57df3d781fa92c0d330493797bc Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Sun, 18 Dec 2022 14:47:36 +0100 Subject: [PATCH] Improved the LoadingView component for the Browse module. --- .../Browse/UI/Components/LoadingView.swift | 30 ++++++++++++------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/Modules/Sources/Browse/UI/Components/LoadingView.swift b/Modules/Sources/Browse/UI/Components/LoadingView.swift index d57ec8d..efec2c1 100644 --- a/Modules/Sources/Browse/UI/Components/LoadingView.swift +++ b/Modules/Sources/Browse/UI/Components/LoadingView.swift @@ -10,18 +10,28 @@ import SwiftUI struct LoadingView: View { var body: some View { - VStack(spacing: 24) { - ProgressView() - .controlSize(.large) - .tint(.red) + VStack { + Spacer() - Text( - "loading.loading_data.text", - bundle: .module - ) - .font(.body) - .fontWeight(.semibold) + VStack(spacing: 24) { + ProgressView() + .controlSize(.large) + .tint(.red) + + Text( + "loading.loading_data.text", + bundle: .module + ) + .font(.body) + .fontWeight(.semibold) + } + .padding(24) + .background(Material.ultraThin) + .cornerRadius(16) + + Spacer() } + .background(Color.clear) .ignoresSafeArea() } }