Improved the LoadingView component for the Browse module.

This commit is contained in:
Javier Cicchelli 2022-12-18 14:47:36 +01:00
parent 32c5fda8f1
commit fdb4e16d32

View File

@ -10,6 +10,9 @@ import SwiftUI
struct LoadingView: View { struct LoadingView: View {
var body: some View { var body: some View {
VStack {
Spacer()
VStack(spacing: 24) { VStack(spacing: 24) {
ProgressView() ProgressView()
.controlSize(.large) .controlSize(.large)
@ -22,6 +25,13 @@ struct LoadingView: View {
.font(.body) .font(.body)
.fontWeight(.semibold) .fontWeight(.semibold)
} }
.padding(24)
.background(Material.ultraThin)
.cornerRadius(16)
Spacer()
}
.background(Color.clear)
.ignoresSafeArea() .ignoresSafeArea()
} }
} }